1. 程式人生 > >Oracle update語句

Oracle update語句

UPDATE 表名稱 SET 列名稱 = 新值 WHERE 列名稱 = 某值

update es_gc_prod set prod_open_type='1' where prod_code='1012';

update es_gc_prod_attr set ipt_id = 'attachEndDate' where product_attr_id = '2017101112121018113'; 

更新多個欄位:

UPDATE Person SET Address = 'Zhongshan 23', City = 'Nanjing'
WHERE LastName = 'Wilson'