| re: Select problem
"zMisc" <young10000@hotmail.com> wrote in message
news:20ZDf.232768$V7.45499@news-server.bigpond.net.au...[color=blue]
> SELECT * FROM [PRODUCT] WHERE [1] = "XXX"
> In the last SELECT, the fields are numbered 1 to 10 in the PRODUCT table.[/color]
You can use any name you like if you enclose the field names in delimiters.
MySQL uses backticks (``) by default, and recent versions of MySQL can be
configured to use double-quotes ("") in compliance with the SQL standard.
Apparently MS Access uses square brackets for the purpose of delimiting
special identifers, though this is definitely nonstandard syntax and is not
likely to be compatible with other RDBMS implementations.
May I suggest that it is unusual -- and confusing -- to use an integer as an
identifier? I can't think of any programming language (C, Java, etc.) in
which this is permitted.
Regards,
Bill K. |