从A表复制数据到B表(B表不存在,可用于表的备份)

select * into B from A     --该操作将自动创建B表,包括B表的数据结构,但是并不包含A表的约束

从A表复制数据追加到B表(B表存在)

inset into B select 列1,列2,列3... from A

复制表的结构

select top 0 * from B into A

 

相关文章:

  • 2022-02-26
  • 2021-05-26
  • 2021-07-25
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案