Entering content frame

Procedure documentation db_fetchnice Locate the document in the library structure

Use

After you have executed the DBM command db_executenice, you use this DBM command to display the next data record from the results one by one.

Prerequisites

·        You have the server authorization AccessSQL.

·        You have executed an SQL statement (see db_executenice). The keyword CONTINUE in the reply shows that the data was not yet completely displayed.

Syntax

db_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 the password MONDAY, connecting to the DEMODB database instance, opening a database session, displaying the columns of the USERS table with the relevant comments one by one:

>dbmcli -u OLEG,MONDAY -d DEMODB

>dbmcli on DEMODB>db_connect

OK

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

OK

CONTINUE

COLUMNNAME                     = 'OWNER'

COMMENT                        = (long)

 

---

dbmcli on demodb>db_fetchnice

OK

CONTINUE

COLUMNNAME                     = 'GROUPNAME'

COMMENT                        = (long)

 

---

dbmcli on demodb>db_fetchnice

...

...

 

 

 

Leaving content frame