Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
bool sqlanywhere_execute( resource link_identifier, string sql_str )
この関数は使用されなくなりました。
sqlanywhere_connect または sqlanywhere_pconnect を使用してすでに開かれている、link_identifier によって識別される接続で、SQL クエリ sql_str を準備して実行します。クエリの実行結果によって TRUE または FALSE を返します。この関数は、結果セットを返さないクエリに適しています。結果セットを取得する必要がある場合は、sqlanywhere_query 関数を使用してください。
link_identifier sqlanywhere_connect または sqlanywhere_pconnect によって返されるリンク識別子。
sql_str SQL Anywhere によってサポートされている SQL 文。
クエリが正常に実行されると TRUE、それ以外の場合は FALSE とエラーメッセージ。
次の例では、sqlanywhere_execute 関数を使用して DDL 文を実行する方法を示しています。
if( sqlanywhere_execute( $conn, "CREATE TABLE my_test_table( INT id )" ) ) { // handle success } else { // handle failure }