MySQL set a variable inside CTE: “select” is fine but “set” doesn't work

后端 未结 0 941
野的像风
野的像风 2021-01-04 01:22

People say CTE is a view and you can\'t set a variable in CTE. But I successfully set a variable @ttl in CTE running the query below:

with CTE as (select @ttl         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题