Sams Teach Yourself Transact-SQL in 21 Days, Second Edition
by Lowell Mauer, David Solomon, Bennett McEwan
Day 8. Defining Data
In the previous week, you have seen how to use Transact-SQL to manipulate the data contained within columns. The columns were organized in tables and one or more of these tables are contained in a database. SQL can be divided into two types of SQL: DML (Data Manipulation Language) and DDL (Data Definition Language). All the SQL you have used so far is DML SQL. Today, you will see how to create and set up the databases and tables for your data by using DDL SQL statements. This enables you to automate the installation of your application by having the program itself create the required database on the user's computer and the needed tables and columns. In addition, you can have maintenance functions in the application modify ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access