mysql跨表条件查询
UPDATE pre_setting
SET value = '渝公网安备123456号'
WHERE item = CONCAT('site_', (SELECT site_id FROM pre_site WHERE domain = 'haha.cn'))
AND field = 'wjbah';
---------------------------------------
update pre_setting set value='网警备案号' where item=CONCAT('site', '_', (select site_id from pre_site where domain='hehe.com')) and field='wjbah';
默认分类 2024-06-04 13:14:27 通过 网页 浏览(542)
共有0条评论!