Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Declaring and Setting Variables

$
0
0
I've been given a connection to a MySQL database on a Linux server - the version appears to be 5.1.52. I'm able to run "select" statements with no problem. I think everything has to be in lower case. I'm trying to create variables and getting an error: "Fatal error encountered during command execution." Each of the following statements, for example, will yield the error:

Code:

set @t1=1;

set @t3:=4;

select @t1=1;

select @t3:=4;


Viewing all articles
Browse latest Browse all 13329

Trending Articles