Re: Variable Assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mysql> SET @st=100;
mysql> SELECT @st;
+------+
| @st  |
+------+
|  100 |
+------+

Cheers.

On 28 October 2010 19:10, Ethan Rosenberg <ethros@xxxxxxxxxxxxx> wrote:
> Dear List -
>
> I cannot figure this one out:
>
> mysql> $st=1000;
> ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
> that corresponds to your MySQL server version for the right syntax to use
> near '$st=1000' at line 1
>
> Ethan
>
> MySQL 5.1 ÂPHP 5 ÂLinux [Debian (sid)]
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
AndrÃs G. MontaÃez
Zend Certified Engineer
Montevideo - Uruguay

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux