Network Administration: SQL Basics

SQL, which stands for Structured Query Language, is a language designed to extract, organize, and update information in relational databases. Originally, SQL was envisioned as an English-like query language that untrained end users could use to access and update relational database data.


But in reality, SQL is nothing like English, and it’s far too complicated and esoteric for untrained users. But it has become the overwhelming favorite among programmers who develop applications that access relational databases.


SQL dialects


Like most computer languages, SQL has several different dialects. In fact, each major brand of SQL database server has its own dialect of SQL. These dialects are 95 percent the same, so a basic SQL statement is likely to work the same regardless of the database server you use it with. But there are many variations in how the more advanced features of SQL work.


The version of SQL used by Microsoft’s SQL Server is known as T-SQL.


SQL statements


Like other programming languages, SQL uses statements to get its work done.









































Common SQL Statements
SQL StatementWhat It Does
useIdentifies the name of the database that subsequent SQL
statements apply to.
selectRetrieves data from one or more tables. This is the SQL
statement that’s used the most.
insertInserts one or more rows into a table.
deleteDeletes one or more rows from a table.
updateUpdates existing rows in a table.
createCreates tables and other database objects.
alterAlters the definition of a table or other database object.
dropDeletes a table or other database object.



dummies

Source:http://www.dummies.com/how-to/content/network-administration-sql-basics.html

No comments:

Post a Comment