Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone tell me how to alter column size in SQL?

1 Answer

0 votes
by (119k points)
edited by

Suppose you want to define the column with datatype varchar and size of 10. Here is the SQL query if you want to alter the column size to varchar (20):

ALTER TABLE table_name

ALTER COLUMN col_1 varchar (20);

If you wish to learn SQL from Industry experts then take up this SQL training and certification program by Intellipaat that provides instructor-led training, and also certification.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 17, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer
asked Jan 5, 2021 in SQL by Appu (6.1k points)

Browse Categories

...