I saw a query run in a log file on an application. and it contained a query like:
SELECT ID FROM CUST_ATTR49 WHERE 1=0
what is the use of s
Per user milso in another thread, another purpose for "WHERE 1=0":
CREATE TABLE New_table_name as select * FROM Old_table_name WHERE 1 = 2; this will create a new table with same schema as old table. (Very handy if you want to load some data for compares)
CREATE TABLE New_table_name as select * FROM Old_table_name WHERE 1 = 2;
this will create a new table with same schema as old table. (Very handy if you want to load some data for compares)