Recent Articles

  Learn the money saving secrets of an accomplished Software Engineer.
  Two Vital Abilities Any Leader Must Have
  Hooked On Books? Write A Book Review For Your Target Audience
  Innovative Business Use of RSS as a Technology
  Protecting Your Domain Names
  Shoes Gone Astray
  How To Make Money With Used Cars!
  The Harmony between Wine and Food
  How To Protect Allergy Sufferers In Your Home
  Three Breathing Techniques For Any Ezine Article
  We Know Why You Haven’t Decided Yet To Purchase A Security Product
  Look Where You're Going ... And Keep An Eye On The Blind Spots!
  Don't Let Your Emotions Get the Better of You
  SpaceCAD
  What's In Your Dog Food?
  A Guide to Touching Up Your Digital Photos
  What Kind Of Multi-Level Marketer Are You?
  Free Agent
  The Road Not Taken
  Your Budget And Taste For Gadgets Will You Determine What Type Of Cell Phone Accessories You Need

Categories
  Auto and Trucks (278)
  Business and Finance (2420)
  Computers and The Internet (1299)
  Family (1018)
  Food and Drink (439)
  Health (1687)
  Home Improvement (623)
  Kids and Teens (156)
  Legal Matters (238)
  Marketing (1293)
  Online Business (2139)
  Parenting (340)
  Recreation and Sports (706)
  Self Improvement and Motivation (2221)
  Site Promotion (546)
  Travel and Leisure (476)
  Web Development (433)
  Women (690)
  Writing (501)
[an error occurred while processing this directive]
   

What is SQL?

What is SQL? SQL stands for Structured Query Language and is the lingua franca in the database world. SQL is a standard that is used by all database vendors and programmers to define, extract and access the information that is stored in databases. SQL began life as an IBM creation but was standardized by the American National Standards Institute (ANSI) and the International Organization for Standardization (ISO) as ANSI/ISO SQL in 1988. Since then ANSI/ISO SQL standard continued to evolve. The ANSI-SQL group has since published three standards over the years:

  1. SQL89 (SQL1)
  2. SQL92 (SQL2)
  3. SQL99 (SQL3)

SQL is a query language. It is English-like and easy to use. However, although there are more than 90 SQL reserved words, most programmers seldom use more than the following handful of commands - SELECT, INSERT, UPDATE, DELETE, FROM, WHERE, HAVING, BETWEEN, LIKE, OR, AND, NOT, IN, ORDER, GROUP and BY.

For example, if you had a database table named "employees" and you wanted to retrieve all records where the employee has the last name "goodman", you would use the following SQL statement:

SELECT * FROM employees WHERE lastname = 'goodman';

There are many different categories of SQL statements but the basic ones which all programmers should be familiar with are the SQL statements that:

  1. Create tables and manipulate their definitions
  2. Query the table data
  3. Manipulate the table data

SQL is predominantly used by 2 types of users - programs and humans (keying in the commands through a database client) - to pass instructions to databases. SQL commands can be keyed into a database client like the MySQL Query Browser or the SQL Server Enterprise Manager and executed to either return a result or modify records in the database. SQL can also be used in conjunction with programming language or scripting language like Microsoft Visual Basic or PHP to communicate with the database.

Although SQL is a world standard, it is unfortunate that most database vendors have come up with different dialects and variations. This is because every database vendor wants to differentiate their database products from the crowd. One good example is Microsoft SQL Server's TRANSACT-SQL. TRANSACT-SQL is a superset of SQL and is designed for use only with Microsoft SQL Server. Although it does make programming much easier for software developers, it is not compliant with other databases like Oracle or MySQL - making TRANSACT-SQL programs non database-portable. As such, although many of these features are powerful and robust, it is good practice to exercise caution and limit your SQL use to be compliant with the ANSI/ISO SQL standards and ODBC-Compliant.

Courtesty of SQLPrimer.com - http://www.sqlprimer.com.

About The Author


John L

For more information, please contact the Webmaster of SQLPrimer.com - http://www.sqlprimer.com.

editor@sqlprimer.com


Copyright 2005 Article-World.com, All rights reserved world wide.