日期:2014-05-16  浏览次数:20639 次

mysql修改数据问题
我有一张表A,有四个字段b,c,d,e
b为主键,如果我只修改c,d两个字段的数据,不修改e,hql怎么写?

------解决方案--------------------
update tb set c=1,d=2 where b=xxx;

------解决方案--------------------
updata tb set c='xxx',d='xxxx'
------解决方案--------------------
update tb set c=1,d=2 where 条件;