I am trying to make a generic extended PDO class. One of the methods pulls data from the db schema like so.
SELECT column_name FROM information_schema.columns WHERE table_name = ?
I am trying to figure out which of PDO’s database drivers will this type of query not work with. I have read that information_schema is an ansi standard, but some database systems have not implimented it. I am only familiar with mysql, but need to make the class agile because other dbs may be used in the future.
Any info about which database systems use information_schema would be greatly appreciated.
This has nothing to do with PDO and everything to do with the underlying database engine.
PostgreSQL, MySQL and MSSQL support
information_schema. Oracle and SQLite don’t, meaning you’d need code specific to those database engines to query table information.