Ça me rend dingue!
Je souhaite renommer une colonne de read-more en read_more dans mon tableau de blogs
J'ai essayé tout ça:
ALTER TABLE blog RENAME COLUMN read-more to read_more;
ALTER TABLE blog CHANGE COLUMN 'read-more' 'read_more' VARCHAR(255) NOT NULL;
Et j'ai toujours ça!
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLUMN read-more to read_more' at line 1
J'utilise MySQL 5.5