UPDATE语句

来源:互联网 发布:mac 磁盘工具找回照片 编辑:程序博客网 时间:2024/05/20 10:20

UPDATE是我们常SQL语句之一,update主要用于更改表中的现有数据.

更新一个表:update product set l_parentid ='1'

详细解说: update 表名 set 列名 =参数

更新两个表或多个表: update product set l_parentid = producttype.parentid from product,producttype where product.l_typeid =producttype.id

详细解说:  update 表名 set 列名 =参数 from 表名1,表名2 where 指定条件

0 0