Mike,
Monday, September 09, 2002, 2:45:36 AM, you wrote:

M > I am having trouble with an sql query.  I have a table with a column that 
M > has an '#' sign in the name.  The problem is I can't seem to escape the 
M > column name to be able to select it.

M > IE:
M > select test#1 from test or select `test#1` from test

# is a symbol of comment to the end of line:
    http://www.mysql.com/doc/en/Comments.html

M > Both don't work and i get the error Unknown column 'test' in 'field list'.
M > Anyone know what I can do to fix it?

 It's applies only if you use mysql command line client.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
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