HOME C C++ PYTHON JAVA HTML CSS JAVASCRIPT BOOTSTRAP JQUERY REACT PHP SQL AJAX JSON DATA SCIENCE AI

SQL Syntax


Most of the actions perform on a database are done with SQL statements.

It consists of keywords that are easy to understand.

Example:

Select all records from the Employee table:

SELECT * FROM `employee`;

Database Tables


A database contains one or more tables. Each table is identified by a name (e.g. "Employees" or "Orders"), and
contain records (rows) with data.

Below is a selection from the Employee table used in the examples:

employee table
The table contains six records (one for each employee) and six columns (Employee_id, Employee_name, Address, City, Pincode, and Country).

SQL Commands


Semicolon after SQL Statements?


Some database systems require a semicolon at the end of each statement.

Semicolon is use to separate statement in database systems which allow more than
one SQL statement to be executed in the same call to the server.