sunny3158

第一种写法:update a set (c1,c2,c3) =(select c1,c2,c3 from b where......) where ......;

第二种写法比较笨:update test set a= \'11 \',b = \'22 \' where id=1

例如:update omcw_owner.MR_RULE_RECORD
set alarm_rule=\'1月 至 12月: 年度计划 -2 <= 指标值 < 年度计划\',warm_rule=\'1月 至 12月: 指标值 < 年度计划 -2\'
where alarm_rule=\'1月 至 12月: 年度计划 - -2 <= 指标值 < 年度计划\' and warm_rule=\'1月 至 12月: 指标值 < 年度计划 - -2\';

insert 也可以适用。批量插入数据。
insert into persons (id_p, lastname , firstName, city ) values (select id_,lastname,forstName,city from personA wehere id_p<"123")

insert into persons

(id_p, lastname , firstName, city )

values

https://blog.csdn.net/rockpk008/article/details/46294299

(200,\'haha\' , \'deng\' , \'shenzhen\'),

(201,\'haha2\' , \'deng\' , \'GD\'),

(202,\'haha3\' , \'deng\' , \'Beijing\');

分类:

技术点:

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2021-08-11
  • 2022-01-17
  • 2022-12-23
  • 2022-02-02
  • 2021-08-18
  • 2021-11-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案