Specifying Variable-Width Data Types for Table Columns : varchar « Data Type « SQL Server / T-SQL






Specifying Variable-Width Data Types for Table Columns

 


19> IF EXISTS(SELECT name FROM sys.tables
20>     WHERE name = 'T')
21>     DROP TABLE T
22>
23> CREATE TABLE T (
24>     c1 int,
25>     c3 varchar(60),
26>     c2 varchar(8000)
27> )
28>

 








Related examples in the same category

1.Declare variable in varchar type
2.varchar type parameter