SQL (Structured Query Language)
SQL is a query language for interrogating, altering and managing relational databases. It is an ISO standard (ISO/IEC 9075). Notable Open Source DBMS packages that use SQL include MySQL, PostgreSQL and SQLite.
Data in an SQL database is stored in tables. A table is a two-dimensional structure with a fixed number of columns and a variable number of rows. Each column has a name and a type, and each row contains a value for each column. The combination of values in any row is unique within the table.
SQL queries are declarative in nature, meaning that they define the result that is needed but not the method by which it should be obtained. This has the effect of insulating client programs from some details of how the database is implemented, and transferring most of the burden of constructing efficient queries to the DBMS.
- Connect to a database using Perl DBI
- Insert the current date and time into an SQL database
- Select a single row from a database table using Perl DBI
- Sort the result of an SQL query
- Test whether the value of an SQL expression is NULL
- Information Technology - Database Languages - SQL, ISO/IEC 9075:2008, International Organization for Standardization, 2008
- C.J.Date and Hugh Darwen, A Guide to the SQL Standard, 4th ed., Addison Wesley, 1996