1.SQL SERVER

  select * into tbuser from tbUserLogin where ID < 20

2.ORACLE & MYSQL 

  create table tbuser

  as

  select * from tbUserLogin  where  ID < 20

 

注:当只需要复制表结构时,只需将where 条件做改动 如 where 1= 2

        * 代表已存在表的所有列,可选择其中的某一或某些列,写出列名即可

相关文章:

  • 2021-09-05
  • 2022-12-23
  • 2021-12-10
  • 2022-02-22
  • 2022-12-23
  • 2022-01-23
  • 2021-09-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-10-18
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案