XSQL-Script tag used to get the list of tables used in an SQL statement (native or XML).
The first table is the main table (FROM).
1 sql.getTables
<sql.getTables />
Returns | |
---|---|
Type | Description |
string | XSQL-Script tag used to get the list of tables used in an SQL statement (native or XML). The first table is the main table (FROM). |
Example 1
Copy
<xsql-script> <body> <return> <sql.getTables> <string> SELECT * FROM systables, sysindexes WHERE 1=0 </string> </sql.getTables> </return> </body> </xsql-script> Exit: [systables, sysindexes]
Example 2
Copy
<xsql-script> <body> <return> <sql.getTables> <string><![CDATA[ <select><columns>*</columns> <from table='systables' /></select> ]]></string> </sql.getTables> </return> </body> </xsql-script> Exit: [systables]