Creating, Modifying, and Dropping Tables

When you create a table, you must specify the table name, column names, and column data types. Column names must be unique to a table, but the same column name can be used in different tables within the same database. The column name can be omitted for columns that are created with a timestamp data type, in which case the column name will default to "timestamp."

Creating Tables

You should adopt standards when naming your tables and columns. Making good use of uppercase and lowercase letters and using underscores to separate words will help make the table and columns easier to read and understand. Try to keep the names short but still long enough to be descriptive. If you use the same column in different tables, ...

Get Microsoft® SQL Server™ 2005 Administrator's Companion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.