CodeIgniter Forums
database - user defined variables - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: database - user defined variables (/showthread.php?tid=31426)



database - user defined variables - El Forum - 06-18-2010

[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 := @[email protected][email protected];

all variables contain NULL ?

I use this example from http://dev.mysql.com/doc/refman/5.0/en/user-variables.html

I use phpMyAdmin
MySQL client version: 5.0.67