|
/*table4不存在时*/ select a.col1, b.col2, c.col3 into table4 from tableA a, tableB b, tableC c where 1 = 0 |
|
select * into 表5 from 表4 m left join (select a.字段1,b.字段2,c.字段3 from 表A a,表B b,表C c where 1<>1) n on 1=1 drop table 表4 exec sp_rename '表5','表4' 版权申明:未经书面授权请勿转载本站信息!!作品版权归所属媒体与作者所有!!
2003-2005 Ksw123.com All Rights Reserved. - TOP
Copyright © 2006 Ksw123.com. All rights reserved.中国考题网 版权所有
|