只创建新表,不复制源表中的数据:select * into newtable from oldtable where 1<>1
创建新表,并复制源表中的数据到新表:select * into newtable from oldtable where 1=1
另外,where 1=1 可简化SQL的编写 当不确定后面需要几个判断条件时可以用到
只创建新表,不复制源表中的数据:select * into newtable from oldtable where 1<>1
创建新表,并复制源表中的数据到新表:select * into newtable from oldtable where 1=1
另外,where 1=1 可简化SQL的编写 当不确定后面需要几个判断条件时可以用到