SQL Tutorial
What is SQL SQL SELECT SQL SELECT DISTINCT SQL WHERE SQL INSERT SQL UPDATE SQL DELETE SQL AND, OR & NOT Clause SQL ORDER BY SQL LIKE Clause SQL IN Operator SQL BETWEEN Operator SQL MAX() and MIN() SQL COUNTSQL JOIN
SQL JOIN SQL INNER JOIN SQL LEFT JOIN SQL RIGHT JOIN SQL FULL OUTER JOINSQL SELECT
SELECT is used to select a particular column or show all the data which is stored in the database. The data returned is stored in a result table, called the result-set.
SELECT Syntax:
SELECT column1, column2 FROM table_name;
Here, Column1, Column2.... are the particular attributes you want to select from the table. If you want to select all the fields available in the table, use the following syntax:
Syntax:
SELECT * FROM table_name;
To retrieve all the records.
Example Database:
This is customer table. In this table, all the values or data stored in item table will be displayed.
id | name | age |
---|---|---|
1 | Kailash | 25 |
2 | Amit | 27 |
3 | Siddarth | 32 |
This is the way to select a record from the database.
SELECT * FROM customer;
If you want to show only customer name from tha table.
SELECT name From customer
Result:
name |
---|
Kailash |
Amit |
Siddarth |
SEARCH POST HERE
Support Us
Subscribe My YouTube Channel
Join Our Telegram Channel & Support Eachother
CATEGORIES
INTERVIEW QUESTIONS
POPULAR POSTS
Elevenstech Web Tutorials
Elevenstech Web Tutorials helps you learn coding skills and enhance your skills you want.
As part of Elevenstech's Blog, Elevenstech Web Tutorials contributes to our mission of “helping people learn coding online”.
Read More
Newsletter
Subscribe to get the latest updates from Elevenstech Web Tutorials and stay up to date