0
How to reset datatype of a field on sql
6 Answers
0
Just to clarify,
Re-set (change/update) Or Reset (set to default value) ?
And please explain your question further, what you want to do with your table
0
Like int to char or opposite
0
Change
0
Use alter table
ALTER TABLE table_name MODIFY COLUMN col_name new_datatype
0
Thank you
0
ALTER TABLE table_name
ALTER COLUMN column_name datatype; -- SQL Server
ALTER TABLE table_name
MODIFY COLUMN column_name datatype; -- My SQL
ALTER TABLE table_name
MODIFY column_name datatype; -- ORACLE