I've been migrating MSSQL DB into MySQL and facing a syntax I cannot find anywhere and need this help. All "MySQL parameters" question deals with "select * from mytable where id = @id" but I'm looking for the below syntax:
SELECT @MyParam = MyValue FROM MyTable
While "SELECT MyValue FROM MyTable" returns values, running the above @MyParam query returns NULLs.
From previous answers I see that as opposed to MSSQL, in MySQL the parameters aren't predefined with any datatype.
What am I missing here?
THX