Sql example query

This article is tagged with: Sql example query and mysql

sql example query

SELECT * FROM users;

sql select syntax

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>

select query in sql

SELECT column_name FROM table_name;

This article is tagged with: Sql example query and mysql