execute+like+php,cubrid_execute

说明

resource cubrid_execute

( resource $conn_identifier

, string $sql

[, int $option

] )

bool cubrid_execute

( resource $request_identifier

[, int $option

] )

The cubrid_execute() function is used to execute the

given SQL statement. It executes the query by using

conn_identifier and SQL, and then returns the

request identifier created. It is used for simple execution of query,

where the parameter binding is not needed. In addition, the

cubrid_execute() function is used to execute the

prepared statement by means of cubrid_prepare() and

cubrid_bind(). At this time, you need to specify

arguments of request_identifier and

option.

The option is used to determine whether to get OID

after query execution and whether to execute the query in synchronous or

asynchronous mode. CUBRID_INCLUDE_OID and CUBRID_ASYNC (or

CUBRID_EXEC_QUERY_ALL if you want to execute multiple SQL statements) can

be specified by using a bitwise OR operator. If not specified, neither of

them isselected. If the flag CUBRID_EXEC_QUERY_ALL is set, a synchronous

mode (sync_mode) is used to retrieve query results, and in such cases the

following rules are applied:

The return value is the result of the first query.

If an error occurs in any query, the execution is processed as a

failure.

In a query composed of q1 q2 q3, if an error

occurs in q2 after q1 succeeds the execution, the result of q1 remains

valid. That is, the previous successful query executions are not rolled

back when an error occurs.

If a query is executed successfully, the result of the second query can

be obtained using cubrid_next_result().

If the first argument is request_identifier to

execute the cubrid_prepare() function, you can specify

an option, CUBRID_ASYNC only.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值