Microsoft
Software
Hardware
Network
Question : SORTING BY Column Names when Column Name is Numeric
Maybe this was bad design, but I have a table with some fields that has names that are simply numbers.
Here are some sample field in my STATISTICS table. ID, NAME, 1, 2, 3, 4
So I want to query for this data but I am getting an error when trying to sort by the field name. Or it sorts by the wrong one because it thinks it is the position of the field -> NOT the name of it.
Ie.
SELECT * FROM STATISTICS WHERE NAME LIKE "A%" ORDER BY 3;
This would actually sort by the "1" field.
In MS SQL Server I would put square brackets around the field name. Is there something similiar for MYSQL?
Thanks.
Answer : SORTING BY Column Names when Column Name is Numeric
use tablename.fieldname. for example STATISTICS.3
Random Solutions
how to configure MSDTC in Windows 2000/SQL 2000
POST file to script
Export Variable with Perl
Cannot run exe app on users desktop
Port Forwarding
What is the maximum number of characters that can go tino the Address bar of Internet Explorer 6.02?
Downloading a pdf form and then make it fillable
Where can I get information on how to install, configure and maintain an MS Exchange environment
How to calculate MAX or MIN within a form
IE^ and IE7 Registry Settings