Using Sql

See StructuredQueryLanguage.


SQL is an extraordinarily simple language. It has basically only 4 commands, thus it is very funny that some proposed technologies want to insulate developers (especially the object oriented developers) from the hairy-scary 4 commands language.

The number of commands is a bad metric for language complexity, moreso because most of SQL is actually under the command "SELECT". Functional languages do take learning despite having zero commands.

Besides, just getting things done is SQL is often not what is most important to developers. Integrity, authorisation, concurrency and performance are often of great importance, and these are all concerns that cannot be put solely on the DBA. When you do actual work with SQL databases, you need much more commands than 4.

However, SQL is not worry free, inspite being so simple.

Major areas of concerns:

The good thing is that a judicious use of SQL allows you to be in the proper relational model and avoid inconsistencies. However, this has to be done only through self imposed discipline, while I hope that in the future database vendors will be able to enforce a proper subset of SQL that is checked by the query engine.

I'll try to create a small set of patterns about the safe usage of SQL.

CostinCozianu


See also: SqlFlaws

CategorySqlProgramming


EditText of this page (last edited December 18, 2004) or FindPage with title or text search