PCHomepage
Programmer
I never uses spaces in column names but I have a dataset now that I did not generate so I have no control over the structure and it has spaces. I am trying to query the table and generally when there is a space in the name I simply tic the name: `column name`. When using MAX(), though MySQL protests and gives only an error. I tried single-quotes but then it just returns the text within the quotes rather than the values in the columns. Any ideas? A sample is below.
Code:
SELECT MAX(FileID) AS FileID,
MAX('A param') AS A_param,
MAX('C0 param') AS C0_param,
MAX('u0 param') AS u0_param,
MAX('Ba param') AS Ba_param,
..... etc.