2

i tried using this code below ALTER TABLE table_name change "MANAGER ID" TO manager_id;

error message received: 1064. 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 '"MANAGER ID" TO manager_id' at line 1 0.000 sec

Ukamaka
  • 23
  • 2

2 Answers2

1

Correct syntax is:

ALTER TABLE table_name RENAME COLUMN `MANAGER ID` TO manager_id;
Zakaria
  • 4,715
  • 2
  • 5
  • 31
0

According to this question and answer your are using the wrong quotes. It should be

`MANAGER ID`

See also the reference documentation.

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348