Returns the name of the sentence is exist. Some database agents admit sequences on columns for the generation of automatic numerical codes.
1 table.getSequenceName
<table.getSequenceName table='table'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atable | string | Name of the table of which you want to obtain the sequence. |
Returns | |
---|---|
Type | Description |
String | Returns the name of the sequence. Returns null if the tables does not exist or the table does not have sequence. |
Exceptions
Database required.
Missing specify the database.
Required attribute [...]
A required attribute has not been informed.
Example
Print the name of the sequence.
Copy
<xsql-script name='test_serial'> <body> <println> <table.getSequenceName table='capuntes' /> </println> </body> </xsql-script>