.
SQL SELECT Query - SELECT Statement in SQL
In Structured Query Language (SQL), SELECT in SQL is used to select the data from the database.
Syntax of SELECT
The basic syntax of the SELECT is given below
Example Of Select Statement
An example of a select query is given below
In Structured Query Language (SQL), SELECT in SQL is used to select the data from the database.
Syntax of SELECT
The basic syntax of the SELECT is given below
SELECT ColumnName FROM TableName ;
Example Of Select Statement
An example of a select query is given below
SELECT Address FROM Student ;
Student table :
If you want to fetch the data of one column from the table the use below select SQL queries.
In the above SQL Statement, it will Select all the Records of the student name column from the student Table.
SELECT Student Name FROM student;
In the above SQL Statement, it will Select all the Records of the student name column from the student Table.
SQL query to select one column record from the table |
2) SQL SELECT -for Selecting data from multiple columns from table
If you want to fetch the data of multiple columns from the table then use the below select SQL queries.
In the above SQL Statement, it will Select all the Records of student names, ages, and class columns from the student Table.
SELECT Student name , age , class FROM student;
In the above SQL Statement, it will Select all the Records of student names, ages, and class columns from the student Table.
3) SQL SELECT (*)-For selecting data of all (*) columns from the table.
If you want to fetch the record of all columns from the table then use the below select SQL queries.
In the above SQL Statement, it will Select all the Records of all columns from the student Table
SELECT * FROM student;
In the above SQL Statement, it will Select all the Records of all columns from the student Table
Hope !!! The above tutorial of select in SQL is helpful for you ...
Team
QA acharya
Tags: SQL select statement, SQL select query, SQL select syntax, select statement, SQL select, Syntax of select in SQL
0 Comments