Generates a String through a map which conform a SQL fragment for a case.
1 map.toCASE
<map.toCASE
name='name'
column='column'
>
<map /> +
</map.toCASE>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Variable with the name of the String to generate. | |||
Acolumn | string | Query variable for the case. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Emap | map |
Example
Generates a SQL fragment for a case.
Copy
<xsql-script name='map_toCase'> <body> <map name='a'> <item>1<number>-4041.5760</number></item> <item>2<number>-13579.6954</number></item> </map> <println> <map.toCASE name='a' column='orden'> <map/> </map.toCASE> </println> </body> </xsql-script>