Entering content frame

 Executing an SQL Statement 

Use

You can transfer an SQL statement to the database instance by entering a DBM command.

When the <statement> that you enter is a SELECT statement, the system displays the results. If you enter other SQL statements, the execution of the statement is confirmed with an OK message.

Prerequisites

You have the server authorization AccessSQL.

You have started an SQL session.

Syntax

sql_execute <statement>

sql_execute SELECT username,connectmode,templimit,user_id from users

OK
END
'PUBLIC';'SINGLE';(null);3
'DBA';'SINGLE';(null);10
'DOMAIN';'SINGLE';(null);11
'SYS';'SINGLE';(null);12
'CONTROL';'MULTIPLE';(null);0

Reply

OK<NL>
(END|CONTINUE)<NL>
<record><NL>
<record><NL>

The fields in an answer record are separated by semicolons.

Character strings are displayed in single quotation marks.

END

Result set output complete

Continue

More result data ready

 

In the event of errors, see Reply Format.

 

Leaving content frame