Traditional Culture Encyclopedia - Traditional stories - What language is used for database programming?

What language is used for database programming?

Database programming is in sql language.

SQL (Structured Query Language) is a powerful database language. SQL is usually used for database communication. ANSI (American National Standards Institute) claims that SQL is the standard language of relational database management system. SQL statements are usually used to complete some database operation tasks, such as updating data in the database or retrieving data from the database.

Commonly used relational database management systems using SQL are: Oracle, Sybase, Aess, Ingres, etc. Although most database systems use SQL, they also have their own system-specific extension functions. However, standard SQL commands such as Select, Insert, Update, Delete, Create and Delete are usually used to complete most database operations.

Extended data

Common SQL statements

1, select statement

Function: SELECT statement is used to select data from a table. The results are stored in a result table (called a result set).

Grammar:

Select one or more column names of the target table, and an expression can be added before the column names, such as: avg (age) FROM the target table name;

And:

SELECT*FROM table name;

Step 2 make a statement

Function: In a table, it may contain duplicate values. This is not a problem, but sometimes you may want to list only different values. The function of the keyword DISTINCT is to return a unique value.

Grammar: