Nonstop Database, HiRDB Version 9 UAP Development Guide

[Contents][Index][Back][Next]

16.11.2 Executing the SQL statement

This example creates a table named ex:

Explanation
  1. To execute an SQL statement, use the Execute method. Specify a string-type SQL statement as is in the CommandText property of HiRDBCommand. This method can execute most SQL statements. Special SQL statements such as commit cannot be executed by this method, as well as statements such as select that must receive a result set. To execute these SQL statements, use dedicated methods.