You send an administration command or SQL statement to the database instance. Unlike when you use the db_execute DBM command, you want the reply to display one data record after another.
After you execute the administration command or the SQL statement, the system returns an OK message or displays the first data record of the reply. To display all the other data records, use the db_fetchnice DBM command.
For further information about SQL statements, see the Reference Manual and SQL Tutorial
· You are working in the session mode of the Database Manager CLI.
· If you want to execute administration commands, you need the AccessUtility server authorization.
· If you want to execute SQL statement, you need the AccessSQL server authorization.
db_executenice [<user_type>] <statement>
Options
Option |
Description |
<user_type> |
User type, possible values are: DBM: first DBM operator DBA: database administrator SAP: special database user in connection with SAP applications |
<statement> |
Administration command or SQL statement |
OK
[END | CONTINUE]
[<record>]
Values for the Reply Fields
Value |
Description |
END |
The complete reply was output. |
CONTINUE |
More data records are available but were not transferred due to the limited size of the reply memory. |
<record> |
A data record of the result of the SQL statement The fields in a
data record are separated by semicolons. |
In the event of errors, see Reply Format
...
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 as a data record with the relevant comments:
>dbmcli -u OLEG,MONDAY -d DEMODB
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
...
...