Examining the database
Querying the database type and version
Database type Query
Microsoft,MySQL SELECT @@version
Oracle SELECT * FROM v$version
PostgreSQL SELECT version()Listing the contents of the database
SELECT * FROM information_schema.tablesSELECT * FROM information_schema.columns WHERE table_name = 'Users'Equivalent to information schema on Oracle
Last updated