数据插入

INSERT INTO 表名称 VALUES (值1, 值2,....)

指定所要插入数据的列

INSERT INTO table_name (列1, 列2,...) VALUES (值1, 值2,....)

 

INSERT INTO table_name (列1, 列2,...) select 值1, 值2,.... from table_name2 

 

次插入多次数据

INSERT INTO 表名称 VALUES (值1, 值2,....),(值1, 值2,....)

 

INSERT INTO table_name (列1, 列2,...) 

select 值1, 值2,....

Union

select 值1, 值2,....

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-03-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案