UPDATE user_bank a INNER JOIN bank AS b
ON a.bank_code = b.bank_code
SET a.bank_type =b.id WHERE a.bank_type IS NULL AND a.id=1650;
更新前的查询:
select * from user_bank where id = 1650;
select * from user_bank where bank_type is null;
select count(*) from user_bank where bank_type is null;
select * from bank;
select * from bank where bank_code = '03010000';
Copyright © 2019- lzlq.cn 版权所有
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务