How does a pdo detect that there is no column in the database [closed]
How does pdo detect that there is no column in a database. thanks
Use
SELECT * FROM information_schema.columns WHERE table_name = 'table';
It will return a list of all columns in table, if none are returned, there are no columns.
It's not actually PDO but database server. PDO send your query to the server and get an error from it.
加载中,请稍侯......
精彩评论