aspxtreme

Structured Query Language ( SQL ) Basics

ADO Primer   Section Index


Structured Query Language ( SQL ) Basics

SQL is a database inquiry and programming language. Using a statement that defines an SQL command to do a specified action creates a query. The minimum required syntax for an SQL statement is:

SELECT * FROM tableName

which SELECTs all records and fields FROM a given table. The statement can include optional clauses with arguments to set the criteria that the action will carry out.

SELECT * FROM tableName WHERE fieldName=value 
   ORDER BY fieldName

When the query is run, the provider searches the specified table or tables, extracts the chosen columns, selects rows that meet the criterion, and sorts or groups the resulting rows into the order specified.

NOTE: An SQL statement must be written as a single line without any line breaks; the examples shown here and in the following sections are done so only for readability.



Books and more ...


Suggested Reading

Need a break ?


More ...
Back to top

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme