MYSQL declaring variables

declare variable in MySQL with @ and assign with :=

SET @crs = 0; // declaration
--here your query
@crs := @crs+1 // assignment

References

Leave a Comment