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 条件;
发布时间: 2012-04-18 15:01:59 作者: rapoo
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 条件;