Change or rename column name in SQL | Mysql tutorial

preview_player
Показать описание
How to change or rename column name in SQL in mysql workbench is shown
Рекомендации по теме
Комментарии
Автор

Thanks man, i have been searching for right syntax for like 1 hour.

olehharhat
Автор

SELECT * FROM Persons;

ALTER TABLE Persons
CHANGE PersonID Sno varchar(50);

Msg 102, Level 15, State 1, Line 23
Incorrect syntax near 'CHANGE'.

sir i am facing this issue
i am using mysql 2019

PramodYadav-ilgk
Автор

if my old column has space how can I replace with underscore?

akashrawat
Автор

It doesn't work for me I use pg4admin 14th version. And it shows that there's a syntax error at or near "change".

vinfinity
Автор

incorrect syntax near change what to do?

Tanya-ddcm
Автор

you haven't changed the column name. you have changed the only data type.

abhishekranjan