`
yaodaqing
  • 浏览: 345366 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

查询并更新表中一个字段的数据

 
阅读更多

#查询并更新表中数据
update t_test set test = substr(test,3)  where '0x'=substr(test,1,2) and id=1;	#更新单条
update t_test set test = substr(test,3)  where '0x'=substr(test,1,2) ;	#更新多条
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics