How to alter the datatype of a column in a table?
CREATE TABLE dbo.MyTable (column_a INT ); GO INSERT INTO dbo.MyTable (column_a) VALUES (10); GO ALTER TABLE dbo.MyTable ALTER COLUMN column_a DECIMAL (5, 2); GO DROP TABLE dbo.MyTable; GO
1.4m articles
1.4m replys
5 comments
57.0k users