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
相關文章
相關標籤/搜索