Sql select

This article is tagged with: Sql select and mysql

sql select

SELECT * FROM table_name;

sql select

select [all/distinct] <col1>, <col2>, <col3>
from <table_name>
[join <join_condition>]
[where <condition>]
[group by <column_name>]
[having <search_condition>]
[order by <sort_specification>]
/*
Specifically for SQL -> Oracle
LEGEND:
[...] : optional entries
<...> : your specific entry
*/</sort_specification></search_condition></column_name></condition></join_condition></table_name></col3></col2></col1>

sql select

SELECT * FROM TABLE_NAME;

sql select

SELECT * FROM products WHERE stock_count <= 10 ORDER BY stock_count ASC;

SQL SELECT

Mit SELECT können Daten aus der Datenbank abgefragt werden. Es ist die am
meissten verbreitete Art.
SELECT name
FROM country
WHERE region = (
SELECT region
FROM country
WHERE name = 'Brasilien'
)

sql select

Everything in brackets is optional.
SELECT [all/distinct] <col1>, <col2>, <col3>
FROM <table_name>
[JOIN <join_condition>]
[WHERE <condition>]
[GROUP BY <column_name>]
[HAVING <search_condition>]
[ORDER BY <sort_specification>]</sort_specification></search_condition></column_name></condition></join_condition></table_name></col3></col2></col1>

sql select

SELECT column1, column2, ...
FROM table_name;

sql select

Used to select data from a database, which is then returned in a results set.
Example 1: Selects all columns from all users.
SELECT * FROM users;
Example 2: Selects the first_name and surname columns
from all users.xx
SELECT first_name, surname FROM users;

This article is tagged with: Sql select and mysql