SQL stands for Structured Query Language ,it is used to communicate with database.According to ANSI it is the standard language for relational database  management systems.Some relational database management systems that used SQL  are MySQL ,ORACLE,Sybase etc.The standard SQL commands "SELECT","CREATE","UPDATE","DELETE" are  used by the most of the database systems .

  • SQL can create stored procedures in a database.
  • can create views in database.
SQL Statements:

  • Select is used for to select total data from the table.
  • Create is used for to create database/tables.
  • Insert into is used for to insert the data into tables.
  • Update is used for to update the data in a database.
  • Delete is used for to delete the data in a database.
  • Alter is used for to modify the database/table.
  • Drop is used for to delete  a table
SELECT:
The most commonly used SQL command is select.It is used for to retrieve the data from a table in database.
Syntax:

->"select column_list from table_name";
  • table_name is name of the table from which table you want to retrieve the data.
  • In column_list place we should write column names.
  • we can write many column names in column_list place.
->"select * from table_name";
  • using above query we can retrieve all records from table in a database
database table employ;
idfirst_namelast_nameageQualificationCompany
100chandrasekhar20B.TechCgi
101rajurajendra30B.ScTCS
102harireddy32B.EWIPRO
103Shekarkammula25MCAGoogle
104Priyaaanand45MBAhcl
example:
"select first_name from employ";
output:
first_name
chandra
raju
hari
Shekar
Priya
  • SQL is non case sensitive so we can write small or capital letters.

1 comment:

Popular Posts

Blogger templates

Blogger news

Blogroll

Navigation

Total Pageviews

Powered by Blogger.

Labels

About Me hi this is chandrasekhar completed B.Tech in 2012.I like blogging

Labels

Labels

Blogroll

Featured Post (Slider)

About

Contact us

Combine

Horizontal

Vertical1

Gallery

Vertical2

Portfolio

Contact Form

Name

Email *

Message *

Most Trending

Top 10 Articles