how to modify column data type in table
with example
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Priti KumariPosted Jan 26, 2014, 2:21 AM
My table structure is like that:
Now i want to change the datatype of age column of above created table.then i write this query:
alter table mytablename
alter column age varchar(30)
Then datatype og age column changed from int to varchar(30)