Sql select where

This article is tagged with: Sql select where and mysql

SQL SELECT WHERE

SELECT column1, column2, ...
FROM table_name
WHERE condition;

select query in sql

SELECT column_name FROM table_name;

SELECt sql

SELECT column1, column2, ...
FROM table_name;

where query in sql server

SELECT * FROM Customers
WHERE Country='Mexico';

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>

where in mysql w3schools

SELECT * FROM `tableName` WHERE `ColumnName` IN (1,2,3);

This article is tagged with: Sql select where and mysql