October 2002
Beginner
864 pages
18h 41m
English
On Day 9, “Creating and Maintaining Tables,” we discussed data types. When creating tables in SQL, you must specify a specific data type for each column.
Note
Data types vary among implementations of SQL because of the way each database server stores data. For instance, Oracle uses certain data types, whereas Sybase and Microsoft's SQL Server have their own data types.
Sybase and Microsoft's SQL Server support the following data types.
char stores fixed-length character strings, such as a STATE abbreviation, where the column is always two characters.
varchar stores variable-length character strings, such as an individual's name, where the exact length of a name is not specified. For example, from AL RAY to WILLIAM ...
Read now
Unlock full access