SQL Zmień typy kolumn
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
Akariuz
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
ALTER TABLE table_name
ALTER COLUMN column_name new_data_type(size);
ALTER TABLE dbo.doc_exa
ADD column_b VARCHAR(20) NULL,
column_c INT NULL ;
ALTER TABLE employees
ALTER COLUMN last_name VARCHAR(75) NOT NULL;
ALTER TABLE TableName
ALTER COLUMN ColumnName NVARCHAR(200) [NULL | NOT NULL]
-- ****** For more tutorial, visit NAYCode.com
Alter Table Customers Alter Column Cust_City nvarchar(100)
Alter Table Customers Alter Column Cust_State nvarchar(100)