sql中定义变量的方法

  select @pid := pid from accounttxlog where userId = 3055 and transactionType=4 and flowType=0 ORDER BY modifyAt DESC limit 1;   update accounttxlog set amount=117777, balance=117777 where pid=@pid;m
相关文章
相关标签/搜索