ALTER TABLE departments
RENAME COLUMN department_name TO dept_name VARCHAR(50);
Why I am getting this errorenter image description here
ALTER TABLE departments
RENAME COLUMN department_name TO dept_name VARCHAR(50);
Why I am getting this errorenter image description here
3
Answers
could be you need CHANGE
or only RENAME
Oh hello, why don’t you try this instead:
ALTER TABLE
table
CHANGEactualName
newName
good luck have fun coding
It depends on your version of MariaDB.
Try this query :
Look here :