Hi!

On Oct 25, Christian Hammers wrote:
> Hi
>  
> The above statement does not work :-( This is sad as it would be a nice
> feature.
> 
> bye,
> 
>  -christian-
> 
> mysql> SET @RF='user';
> Query OK, 0 rows affected (0.00 sec)
> mysql> SELECT * FROM @RF;
> ERROR 1064: You have an error in your SQL syntax near '@RF' at line 1
> 

At least it's not a bug - according to the manual:

   User variables may be used where expressions are allowed.

Obviously, FROM clause is not the place.

Regards,
Sergei

-- 
MySQL Development Team
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  Osnabrueck, Germany
       <___/

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to