|
|
@ -18219,104 +18219,6 @@ a:active { |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable"> |
|
|
|
|
|
|
|
<thead> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="column-title"><strong>Funktion/Prozedur</strong></td> |
|
|
|
|
|
|
|
<td><strong>decval</strong></td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</thead> |
|
|
|
|
|
|
|
<tbody> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Beschreibung</td> |
|
|
|
|
|
|
|
<td>Liefert einen String als decimal (analog Basic-Funktion |
|
|
|
|
|
|
|
val). </td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Parameter</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<ol> |
|
|
|
|
|
|
|
<li>wert varchar(255) (Eine String-Repräsentation einer Dezimalzahl |
|
|
|
|
|
|
|
)</li> |
|
|
|
|
|
|
|
</ol> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
CREATE or replace FUNCTION decval(varchar(255)) RETURNS numeric(16,2) STABLE |
|
|
|
|
|
|
|
AS 'select $1::numeric where trim($1) !='''' ' LANGUAGE sql; |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
create procedure decval(p_str varchar(255)) |
|
|
|
|
|
|
|
returning decimal(16,2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return p_str::decimal(16,2); |
|
|
|
|
|
|
|
end procedure; |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Rückgabe</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<ol> |
|
|
|
|
|
|
|
<li>wert Typ: numeric</li> |
|
|
|
|
|
|
|
</ol> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Kommentar</td> |
|
|
|
|
|
|
|
<td>Die Zahl<br></td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable"> |
|
|
|
|
|
|
|
<thead> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="column-title"><strong>Funktion/Prozedur</strong></td> |
|
|
|
|
|
|
|
<td><strong>decval</strong></td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</thead> |
|
|
|
|
|
|
|
<tbody> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Beschreibung</td> |
|
|
|
|
|
|
|
<td>Liefert einen String als decimal (analog Basic-Funktion |
|
|
|
|
|
|
|
val). </td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Parameter</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<ol> |
|
|
|
|
|
|
|
<li>wert text (Eine String-Repräsentation einer Dezimalzahl |
|
|
|
|
|
|
|
)</li> |
|
|
|
|
|
|
|
</ol> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
CREATE or replace FUNCTION decval(text) RETURNS numeric(16,2) STABLE |
|
|
|
|
|
|
|
AS 'select $1::numeric where trim($1) !='''' ' LANGUAGE sql; |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Rückgabe</td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<ol> |
|
|
|
|
|
|
|
<li>wert Typ: numeric</li> |
|
|
|
|
|
|
|
</ol> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="themenspalte">Kommentar</td> |
|
|
|
|
|
|
|
<td>Die Zahl<br></td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable"> |
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -18341,20 +18243,11 @@ a:active { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
<td> |
|
|
|
<td>$SUPERX_DIR/db/install/prozeduren/proc_decval_pg.sql</td> |
|
|
|
CREATE or replace FUNCTION decval(char(255)) RETURNS numeric(16,2) STABLE |
|
|
|
|
|
|
|
AS 'select $1::numeric where trim($1) !='''' ' LANGUAGE sql; |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
<td class="themenspalte">Script</td> |
|
|
|
<td> |
|
|
|
<td>$SUPERX_DIR/db/install/prozeduren/proc_decval_ids.sql</td> |
|
|
|
create procedure decval(p_str char(255)) |
|
|
|
|
|
|
|
returning decimal(16,2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return p_str::decimal(16,2); |
|
|
|
|
|
|
|
end procedure; |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td class="themenspalte">Rückgabe</td> |
|
|
|
<td class="themenspalte">Rückgabe</td> |
|
|
|