Returns a vtable with the restrictions of the table. Devuelve una vtable con las restricciones de la tabla. Returns three columns, the first for the name of the check, the second for the original text and the third indicating if it is enabled.

 

1 connection.metadata.getCheckConstraints

<connection.metadata.getCheckConstraints table='table'/>
Example
Copy
<xsql-script name='connection_metadata.getColumns_sample'>
    <body>
        <println>
           <connection.metadata.getCheckConstraints table='apps_sys_users'>                
           </connection.metadata.getCheckConstraints>
        </println>
    </body>
</xsql-script>
Copy
+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+
|name             |text                                                                                                                                                                                                    |enable |
|char             |char                                                                                                                                                                                                    |boolean|
+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+
|c_apps_sys_users1|(((((store_code IS NOT NULL ) AND (vehicle_code IS NULL ) ) AND (person_code IS NULL ) ) OR (((vehicle_code IS NOT NULL ) AND (store_code IS NULL ) ) AND (person_code IS NULL ) ) ) OR (((person_code I|true   |
|                 |S NOT NULL ) AND (store_code IS NULL ) ) AND (vehicle_code IS NULL ) ) )                                                                                                                                |       |
+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+