Efficient SQL test query or validation query that will work across all (or most) databases
After a little bit of research along with help from some of the answers here: SELECT 1 H2 MySQL Microsoft SQL Server (according to NimChimpsky) PostgreSQL SQLite Hive SELECT 1 FROM DUAL Oracle SELECT 1 FROM any_existing_table WHERE 1=0 or SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS or CALL NOW() HSQLDB (tested with version 1.8.0.10) Note: I tried … Read more