Entering content frame

Procedure documentation sql_fetchnice Locate the document in the library structure

Use

Having executed the Database Manager command sql_executenice, you can use this command to always display the next data record of the result.

Prerequisites

·        You have the server authorization AccessSQL.

·        You have executed the SQL statement (see: sql_executenice). The keyword CONTINUE in the reply shows that the data has not yet been completely displayed.

Syntax

sql_fetchnice

Reply

OK

[END | CONTINUE]

[<column>=<value>]

[<column>=<value>]

[...]

Values for the Reply Fields

Value

Description

END

The reply was transferred in full.

CONTINUE

More data records are available but were not transferred due to the limited size of the reply memory.

<column>

Name of Column

<value>

Column value

Example

Logging on to the Database Manager CLI in session mode as operator OLEG with password MONDAY, connecting to the database instance DEMODB, displaying the columns of the USERS table record by record with the relevant comments:

>dbmcli -u OLEG,MONDAY -d DEMODB

dbmcli on DEMODB>sql_executenice SELECT columnname, comment FROM domain.columns WHERE tablename = 'USERS'

OK

CONTINUE

COLUMNNAME                     = 'OWNER'

COMMENT                        = (long)

 

---

dbmcli on demodb>sql_fetchnice

OK

CONTINUE

COLUMNNAME                     = 'GROUPNAME'

COMMENT                        = (long)

 

---

dbmcli on demodb>sql_fetchnice

...

...

 

 

Leaving content frame