mysql if判断字段值更新量两表数据sql
摘要:UPDATE a,bSET ps=if(ps='0','1',ps),uptime=if(ps='0',acttime,uptime),pw=if(ps='0','123',pw)where eo_on in(select id fromb where status ='1') and a.on=b.id
阅读全文
posted @ 2012-05-09 12:59

浙公网安备 33010602011771号