求写一个MYSQL替换语句,使得2个字段的值相等

求写一个MYSQL替换语句,使得2个字段的值相等,第1张

update pre_forum_typeoptionvar set value = (select subject form pre_forum_thread where pre_forum_thread.tid = (select tid from pre_forum_typeoptionvar where optionid=33))

select * from 表名 where match_id in (select match_id from 表名 where team_id='a' or team_id='b' group by match_id)

CREATE TRIGGER `XXX` after UPDATE ON `ne`FOR EACH ROW

if realqty = qty thenupdate XXX set ready=1 where xxx end if


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/8428698.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-16
下一篇 2023-04-16

发表评论

登录后才能评论

评论列表(0条)

保存