What does where 1=0 mean in SQL statement

Indicates that the condition is never true. It
is suitable for exporting table structure.
For example, if you want to see the structure of the next table, you can
select * from table name where 1=0
or you want to use the original table to generate a table with no data but the same structure as the original table
select *
into new table
from source table

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324984185&siteId=291194637