开发者

PHP PDO creating tables

When I use some basic query, like SELECT * FROM users 开发者_高级运维PDO::query() works and it returns object(PDOStatement)#3 (1) { ["queryString"]=> string(19) "SELECT * FROM users" } and I can continue using this, but when I use query to create table the return of the function is bool(false).The query is valid and its executed correct, but the result is .. false.


Correct me if I am wrong, but for CREATE, shouldn't you be using exec, not query?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜