pdo预定义常量-凯发官网入口
保留数据库驱动返回的列名。
pdo::case_lower (int)
强制列名小写。
pdo::case_upper (int)
强制列名大写。
pdo::null_natural (int)
pdo::null_empty_string (int)
pdo::null_to_string (int)
pdo::fetch_ori_next (int)
在结果集中获取下一行。仅对可滚动游标有效。
pdo::fetch_ori_prior (int)
在结果集中获取上一行。仅对可滚动游标有效。
pdo::fetch_ori_first (int)
在结果集中获取第一行。仅对可滚动游标有效。
pdo::fetch_ori_last (int)
在结果集中获取最后一行。仅对可滚动游标有效。
pdo::fetch_ori_abs (int)
根据行号从结果集中获取需要的行。仅对可滚动游标有效。
pdo::fetch_ori_rel (int)
根据当前游标位置的相对位置从结果集中获取需要的行。仅对可滚动游标有效。
pdo::cursor_fwdonly (int)
创建一个只进游标的 pdostatement 对象。此为默认的游标选项,因为此游标最快且是 php 中最常用的数据访问模式。
pdo::cursor_scroll (int)
创建一个可滚动游标的 pdostatement 对象。通过 pdo::fetch_ori_* 常量来控制结果集中获取的行。
pdo::err_none (string)
对应 sqlstate '00000',表示 sql 语句没有错误或警告地成功发出。当用 pdo::errorcode() 或 pdostatement::errorcode() 来确定是否有错误发生时,此常量非常方便。在检查上述方法返回的错误状态代码时,会经常用到。
pdo::param_evt_alloc (int)
分配事件
pdo::param_evt_free (int)
解除分配事件
pdo::param_evt_exec_pre (int)
执行一条预处理语句之前触发事件。
pdo::param_evt_exec_post (int)
执行一条预处理语句之后触发事件。
pdo::param_evt_fetch_pre (int)
从一个结果集中取出一条结果之前触发事件。
pdo::param_evt_fetch_post (int)
从一个结果集中取出一条结果之后触发事件。
pdo::param_evt_normalize (int)
在绑定参数注册允许驱动程序正常化变量名时触发事件。
pdo::sqlite_deterministic (int)
使用 pdo::sqlitecreatefunction() 创建的函数是确定性的(deterministic)。举例说明:在同一个 sql 语句内,函数的参数不变,则返回的结果也不变。(php 7.1.4 起有效)


