Back home   |   Bookmark   |   Start page   |   Site map    
Services
News
Channels
Home & Family
Leisure
Technology
Business
Science
Site Search
Free email




What is SQL?

John L
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:

SQL89 (SQL1)

SQL92 (SQL2)

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:

n (<)
Create tables and manipulate their definitions Query the table data 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.

About the Author
©2005 All rights reserved
Courtesy of SQLPrimer.com & John L



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

editor@sqlprimer.com

More articles
URL tips
How Get Feedback Customers
Keyword search engine
Network marketing program
Drive traffic website
Blog Internet profit
Reciprocal Linking Etiquette
Reciprocal links
Use Color Website
Website strategies
search engines optimization
Blogs
Cascade style sheets
Basic Web Design
RSS content distribution
Web hosting
SQL
Website links
Website design esentials
Flash web design
Quotes
Ive always wanted to be a scientist. That way, I could get a bunch of grants and do research into whether money can really buy happiness.
Kyannke.

Ive always wanted to be somebody, but I see now I should have been more specific.
Lily Tomlin

Writers
If you are a writer and want to see your article published at Theallineed.com, just click here to submit.

Info
Today...
In the news...
Poverty reflected in children's schools as well as in the home
The report, which is based on a survey of 7,600 schools in 11 countries in Latin America, Asia and North Africa, reveals a particularly glaring gap between the resources available to urban and rural schools.
Do you think that Judge should be nominated for the United States Supreme Court?
Yes, the President picked him and the Senate should just confirm him
Yes, he will help put a stop to activist rulings
No, he will royally srcew up the country
No, silent nominations never turn out well
 
Things to ponder
Is grass really greener on the other side?

Did you know...
The only part of the human body that cannot develop cancer is the lens of the eye.

Quote of the day
Only fools are positive.
Moe Howard

Featured article
Weather vane – Just the outdoor accessory to make your house stand out
As you look down your street, you realize that every house on your block is pretty similar. Sure, that can be nice, but maybe you want yours to stand out a little bit. Well, there is an easy way to do it and it doesn't involve paint or demodeling.

 
© 2002 - 2007 Lexur