MySQL local variables

前端 未结 4 1979
失恋的感觉
失恋的感觉 2021-02-05 02:44

I am trying to define and initialize a MySQL variable for a query.

I have the following:

declare @countTotal int;
SET @countTotal = select COUNT(*)
 from         


        
4条回答
提交回复
热议问题