Returns the value of the rowid obtained in a SQL query.
1 sql.rowid2string
<sql.rowid2string />
Returns | |
---|---|
Type | Description |
string | Returns a string of characters which represents the rowid. |
Example
Select the roeid of a register of the cnotes tables and print it on screen.
Copy
<xsql-script name='sql_type'> <body> <println>Values of the rowid of the note 6688...</println> <println /> <connection name='demo_sports1'> <select prefix='m_'> <columns>rowid</columns> <from table='cnotes' /> <where>apteid = 6688</where> </select> <println>CASE INFORMIX: . rowid : <m_rowid /></println> <println> . rowid2string : <sql.rowid2string><m_rowid /></sql.rowid2string></println> </connection> <println /> <connection name='oracle_erp_lin'> <select prefix='m_'> <columns>rowid</columns> <from table='cnotes' /> <where>apteid = 6688</where> </select> <println>CASE ORACLE: . rowid : <m_rowid /></println> <println> . rowid2string : <sql.rowid2string><m_rowid /></sql.rowid2string></println> </connection> </body> </xsql-script> Exit: Values of the rowid of the note 6688... CASO INFORMIX: . rowid : 3076 . rowid2string : 3076 CASE ORACLE: . rowid : oracle.sql.ROWID@1bf09ed . rowid2string : AABoegAAGAAAAA+AAD