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. For more information, please contact the Webmaster of SQLPrimer.com - http://www.sqlprimer.com.
limousine chicago serviceIf you're an up and coming graphic/web designer just out... Read More
Looks like every client wants a Flash site these days... Read More
Launching a new small business website is often a long... Read More
"I am a writer, not a business-person. I don't want... Read More
In the time that I have been using the Internet,... Read More
"What's in it for me?" you ask. "Why should I... Read More
Project Safekids provides webmasters a valuable tool which could save... Read More
No matter the size of your business, having a web... Read More
When used to describe a web site, the term "sticky"... Read More
Even with the steady growth of the World Wide Web,... Read More
A company must earn and keep trust or sales don't... Read More
Globalize Your WebsiteThe Internet has unlocked a wide array of... Read More
Making money with your web site is the dream and... Read More
August 8 2005, Macromedia announced a release of Studio 8.... Read More
So what do you do if need to get a... Read More
Psychology is a long word which everyone thinks, "no, that's... Read More
Selecting the Perfect Domain NameThe first issue I have with... Read More
Does your website have a links/resources page?Do you exchange reciprocal... Read More
Although CSS layouts have been around for years, they haven't... Read More
"'Page Not Found' on this Server. Check the URL and... Read More
Right after the thought, "I need a website," people usually... Read More
You've just finished congratulating your marketing team. After six months... Read More
The "robots" meta tag, when used properly, will tell the... Read More
A website is the most versatile and cost-effective marketing tool... Read More
Appealing to others is really important when you have a... Read More
led lighting savings street light supplier Pete's produce .One of the things that many people overlook when building... Read More
I am just a learner who likes to delve in... Read More
I'm one of those people that always wanted a website,... Read More
Building a new website can be a lengthy task. From... Read More
Your ObjectiveYour small business needs an appealing and professional website... Read More
The process of Web application development is critical to the... Read More
"Don't Sell the Steak, Sell the Sizzle."Have you heard of... Read More
I had a client say something to me the other... Read More
Your web site will be your window to the world.... Read More
QUESTION: Should I build and maintain my business Web... Read More
Profiles are one of the best kept secrets around regarding... Read More
If you ever want to create a state directory, article... Read More
Although there are significant differences among the various types of... Read More
The Internet has opened a whole New World of opportunity... Read More
There's been widespread speculation about the new legislation being introduced... Read More
Spend time planning your Web site. Before you design a... Read More
Every good Internet business understands the value of conversions versus... Read More
Do you need a web site? Are you considering getting... Read More
A website is lifeline of internet home business. In order... Read More
If you're looking for better web site ROI, chances are,... Read More
Installment 1Developing State-enabled Applications With PHPWhen a user is browsing... Read More
"What's in it for me?" you ask. "Why should I... Read More
Creatively marketing your corporate site takes time in the set... Read More
When I started my company in 2002, I knew I... Read More
In the time that I have been using the Internet,... Read More
Web Development Web Development |