Search
 
SCRIPT & CODE EXAMPLE
 

SQL

alter table name

ALTER TABLE old_table_name RENAME new_table_name;
Comment

change column name in sql

MySQL:
ALTER TABLE Customer CHANGE Address Addr char(50);

Oracle:
ALTER TABLE Customer RENAME COLUMN Address TO Addr;
Comment

how to change column name in sql

ALTER TABLE Student RENAME COLUMN NAME TO FIRST_NAME;
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
Comment

how to change a collumn name in sql

ALTER TABLE `table_name` 
CHANGE `old_name` `new_name` VARCHAR(10) 
CHARACTER SET utf8 
COLLATE utf8_general_ci NULL 
DEFAULT NULL;
Comment

modify column name in sql

ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
Comment

alter table name sql

-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';
Comment

sql alter column name sql server

EXEC sp_RENAME 'table_name.oldColumn_name' , 'newColumn_name', 'COLUMN'
Comment

sql rename table

ALTER TABLE dataflair_employee
RENAME TO DataFlair_Info ;
Comment

change column name sql

ALTER TABLE `db_name`.`table_name` 
	CHANGE `current_column_name` `new_column_name` datatype(size) NOT NULL COMMENT '';
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres create column with default value 
Sql :: mysql get latest duplicate rows 
Sql :: oracle list grants on package 
Sql :: postgres regular expression replace 
Sql :: sql delete all values in a column 
Sql :: sqlalchemy return id after insert 
Sql :: how to combine diff colmun value using group by postgres 
Sql :: sql datetime format dd/mm/yyyy hh:mm am/pm 
Sql :: use group_concat in concat 
Sql :: desc in sql 
Sql :: how to create a table in sql 
Sql :: how to query date in sql server 
Sql :: get time component of datetime sql 
Sql :: mariadb json select 
Sql :: mysql like case sensitive 
Sql :: install postgresql 10 centos 7 
Sql :: import sql dump into postgresql database 
Sql :: convert multiple columns to rows in sql server 
Sql :: PostgreSQL types and C# types 
Sql :: SQL Server Altering Column to be Unique 
Sql :: sql server last 2 days 
Sql :: oracle select into 
Sql :: oracle list proxy users 
Sql :: sqlite unique multiple columns 
Sql :: create table with index mysql 
Sql :: postgres week number 
Sql :: sql get duplicates by composite 
Sql :: athena create table 
Sql :: to_char oracle 
Sql :: sql query to check if column contains alphabets 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =