Hello,
I am pretty new to MySQL and the only previous database use I have had is Access way back in school, so apologise if this is a seriously silly question.
I have created a table named mq1. Within which I have created 11 fields/columns: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, & 10.
How do I get all the information from column named '0'?
I tried the standard querying from the tutorial books:
SELECT 0 FROM mq1 (column 0 from mq1 actually contains one entry: "hello" but this query doesn't return "hello", it returns '0'.)
If I rename column '0' to 'a' and try the query again:
SELECT a FROM mq1 (it returns "hello", which is what i want if I name the column 0)
Do I need to escape the 0 somehow as it is a number? Or is it just not possible to name columns by numbers?
Any help would be very much appreciated here. Thanks,
John