Settings | Sign in | Sign up

There is currently 1 post.

PDO中的exec函數和rowCount函數都可以直接當布爾值用

Floor 1 巨大八爪鱼 6/1/15 12:22
exec的返回值可以用來判斷執行insert,update,deleted語句是否成功。
row count可以用來判斷記錄集是否為空。

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.