Friday, 18 August 2017

What Is SQL Syntax, How to use SQL for websites

What Is SQL Syntax, How to use SQL for websites

Database Tables

A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data.

In this tutorial we will use the well-known Northwind sample database (included in MS Access and MS SQL Server).

Below is a selection from the "Customers" table:
CustomerID    CustomerName    ContactName    AddressCity    PostalCode     Country
         1               Gohil mukesh         8784757785       Palanpur            548874             India

       1            Gohil Nanda       8784757785     Palanpur       548874          India




The table above contains five records (one for each customer) and seven columns (CustomerID, CustomerName, ContactName, Address, City, PostalCode, and Country).

SQL Statements

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

The following SQL statement selects all the records in the "Customers" table:

Example :
SELECT * FROM Customers;


Post a Comment

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search