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

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere for Ruby » SQL Anywhere Ruby API

 

sqlany_execute_immediate

Executes the specified SQL statement immediately without returning a result set. It is useful for statements that do not return result sets.

Syntax
sqlany_execute_immediate ( $conn, $sql )
Parameters
  • $conn   A connection object with a connection established using sqlany_connect.

  • $sql   A SQL string. The SQL string should not have parameters such as ?.

Returns

Returns a scalar value that is 1 on success or 0 on failure.

See also
Example
rc = api.sqlany_execute_immediate(conn, "UPDATE Contacts
     SET Contacts.ID = Contacts.ID + 1000
     WHERE Contacts.ID >= 50" )