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

SQL Anywhere 12.0.0 (Français) » SQL Anywhere Server - Programming » Sybase Open Client support » Using SQL in Open Client applications

 

Using prepared statements

The ct_dynamic function is used to manage prepared statements. This function takes a type parameter that describes the action you are taking.

 ♦  To use a prepared statement in Open Client
  1. Prepare the statement using the ct_dynamic function, with a CS_PREPARE type parameter.

  2. Set statement parameters using ct_param.

  3. Execute the statement using ct_dynamic with a CS_EXECUTE type parameter.

  4. Free the resources associated with the statement using ct_dynamic with a CS_DEALLOC type parameter.

For more information about using prepared statements in Open Client, see your Open Client documentation.