熱門文章

2011年2月24日 星期四

[MSSQL] 撈出Table Schema

今天工作上剛好有用到, 做個小筆記

只撈出整個Table Schema, 不撈出全部資料

example

select * into temptable from XXX where 1=0

where 1=0 等於條件永遠不成立

另外

where 1=1 等於條件永遠成立

select * from XXX and where1=1

沒有留言:

張貼留言