How can I give the long text as a table field name in mysql?
Here is what I tried:
CREATE TABLE IF NOT EXISTS surveyForm_8(
surveyForm_8_id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(surveyForm_8_id),
survey_form_id VARCHAR(255),
submitted_by VARCHAR(15),
submitted_on TIMESTAMP,
'How_to_change_the_way_of_road?' VARCHAR(255)
)
But I got this error:
#1059 error
`How_to_change_the_way_of_road?`
though I would recommend against including the?
in the table name. – Michael Berkowski Jan 9 '13 at 13:51#1059
thrown because of length of the column name? – Leri Jan 9 '13 at 13:54