Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - 编程 » Sybase Open Client 支持 » Open Client 应用程序中的 SQL

 

SQL 语句执行

可通过将 SQL 语句放到 Client Library 函数调用中将其发送到数据库服务器。例如,下面的两个调用将执行 DELETE 语句:

ret = ct_command(cmd, CS_LANG_CMD,
                  "DELETE FROM Employees
                   WHERE EmployeeID=105"
                 CS_NULLTERM,
                 CS_UNUSED);
ret = ct_send(cmd);