Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
bool sqlanywhere_set_option( resource link_identifier, string option, mixed value )
不建议使用此函数。应改用 sasql_set_option 函数。请参见sasql_set_option。
在指定连接上设置指定选项的值。可以为以下选项设置值:
可以通过在 php.ini 文件中加入以下行,更改选项的缺省值。在本示例中,为 auto_commit 选项设置了缺省值。
sqlanywhere.auto_commit=0
link_identifier 由 sqlanywhere_connect 函数返回的链接标识符。
选项 要设置的选项的名称。
value 新的选项值。
TRUE(成功时)或 FALSE(失败时)。
以下示例说明设置 auto_commit 选项值的不同方法。
$result = sqlanywhere_set_option( $conn, "auto_commit", "Off" );
$result = sqlanywhere_set_option( $conn, "auto_commit", 0 );
$result = sqlanywhere_set_option( $conn, "auto_commit", False );