Monday, November 2, 2009

SQL SYNTAX

Database Tables


A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data.



Below is an example of a table called "Persons":













The table above contains three records (one for each person) and five columns (P_Id, LastName, FirstName, Address, and City).





--------------------------------------------------------------------------------



SQL Statements

Most of the actions you need to perform on a database are done with SQL statements.



The following SQL statement will select all the records in the "Persons" table:



SELECT * FROM Persons



In this tutorial we will teach you all about the different SQL statements.

No comments:

Post a Comment