1 View
This statement is used to create a new view based on one or more existing tables stored in database.
<view name='name'>
<columns /> ?
<select /> ?
<union /> ?
</view>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | View name. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecolumns | This element indicates the names of the columns whereby the view will be created. | ||||
Eselect | In this element you must enter an SQL statement in XML. For further information see section DML: SELECT. | ||||
Eunion | In this element you must enter a UNION SQL type statement in XML. For further information see section DML: UNION. |
Example
Copy
<view name='galmacen_v'> <columns> codigo, nomalm, tercer, tipdir, empcode, agrupa, recint, delega, depart, stkneg, fecval, horini, horfin, tipast, fecalt, fecbaj, fecult, feccon, estado </columns> <select> <columns> codigo, nomalm, tercer, tipdir, empcode, agrupa, recint, delega, depart, stkneg, fecval, horini, horfin, tipast, fecalt, fecbaj, fecult, feccon, estado </columns> <from table='galmacen' /> <where> estado = 'A' AND <today /> BETWEEN fecalt AND <nvl>fecbaj, <today /></nvl> </where> </select> </view>