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
Try this:-
select @countTotal := COUNT(*) from nGrams;