Welcome Guest, Not a member yet? Register   Sign In
database - user defined variables
#1

[eluser]SPeed_FANat1c[/eluser]
Hi,

can you explain me why when I run this code

Code:
SET @t1=1, @t2=2, @t3:=4;
SELECT @t1, @t2, @t3, @t4 := @t1+@t2+@t3;

all variables contain NULL ?

I use this example from http://dev.mysql.com/doc/refman/5.0/en/u...ables.html

I use phpMyAdmin
MySQL client version: 5.0.67




Theme © iAndrew 2016 - Forum software by © MyBB