How to modify column data type in table
with example
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Priti KumariRank #414 · 6K reputationPosted Jan 25, 2014, 9:21 PM EST
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)