1. 声明表变量:declare table @tablename(columnname type), 如: declare table @t(id int);

2. 把查询 结果插入表变量中: insert into @t.columnname select id from table1, 把table1的id 插入@t中

 

相关文章:

  • 2021-12-30
  • 2022-12-23
  • 2022-02-09
  • 2022-01-07
  • 2021-09-26
  • 2021-08-19
  • 2022-12-23
  • 2022-03-05
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-08-25
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
相关资源
相似解决方案