select Into用法
1. insert into 表(列1,列2) select 列1,列2 from 表2 where....
2.select * into 表2 from 表 1where...
上面写法标识将表1的数据插入表2中,在运行完毕这条语句后,表2 在执行该SQL 语句钱表2 已经存在了 则报错。
即:该跳语句不能重复执行
1. insert into 表(列1,列2) select 列1,列2 from 表2 where....
2.select * into 表2 from 表 1where...
上面写法标识将表1的数据插入表2中,在运行完毕这条语句后,表2 在执行该SQL 语句钱表2 已经存在了 则报错。
即:该跳语句不能重复执行