Answers for "change column type mysql"

SQL
14

sql change column types

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
Posted by: Guest on May-07-2020
9

add new column to the table mysql

ALTER TABLE `TABLE_NAME` 
	ADD `COLUMN_NAME` VARCHAR(50) NULL
    AFTER `COLUMN_NAME_AFTER`;
Posted by: Guest on August-20-2020
1

mysql change data type of column

ALTER TABLE tablename MODIFY columnname DATATYPE;
Posted by: Guest on July-15-2021
1

change column in mysql

#Alter is used
#alter table TableName change CurrentColumnName NewColumnName Specification(size);
alter table TableName change name firstname varchar(30);
Posted by: Guest on April-20-2021
0

mysql change column

ALTER TABLE Persons

ADD DateOfBirth date;
Posted by: Guest on July-30-2021

Code answers related to "change column type mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language