sql change column types
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
sql change column types
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
add new column to the table mysql
ALTER TABLE `TABLE_NAME`
ADD `COLUMN_NAME` VARCHAR(50) NULL
AFTER `COLUMN_NAME_AFTER`;
mysql change data type of column
ALTER TABLE tablename MODIFY columnname DATATYPE;
change column in mysql
#Alter is used
#alter table TableName change CurrentColumnName NewColumnName Specification(size);
alter table TableName change name firstname varchar(30);
mysql change column
ALTER TABLE Persons
ADD DateOfBirth date;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us