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 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere PHP API » SQL Anywhere PHP API 参考

 

sasql_real_query

原型
bool sasql_real_query( sasql_conn $conn, string $sql_str )
说明

使用提供的连接资源针对数据库执行查询。可使用 sasql_store_result 或 sasql_use_result 检索或存储查询结果。sasql_field_count 函数可用于查看查询是否返回结果集。

请注意,sasql_query 函数等效于调用该函数和 sasql_store_result 或 sasql_use_result 中的一个。

参数

$conn   由连接函数返回的连接资源。

$sql_str   一个 SQL Anywhere 支持的 SQL 语句。

返回值

TRUE(成功时)或 FALSE(失败时)。

相关函数