SQL Syntax
SQL Syntax
http://www.tutorialspoint.com/sql/sql-syntax.htm
Copyright tutorialspoint.com
SQL is followed by unique set of rules and guidelines called Syntax. This tutorial gives you a quick
start with SQL by listing all the basic SQL Syntax:
All the SQL statements start with any of the keywords like SELECT, INSERT, UPDATE, DELETE,
ALTER, DROP, CREATE, USE, SHOW and all the statements end with a semicolon (;).
Important point to be noted is that SQL is case insensitive, which means SELECT and select have
same meaning in SQL statements, but MySQL makes difference in table names. So if you are
working with MySQL, then you need to give table names as they exist in the database.
All the examples given in this tutorial have been tested with MySQL server.
SQL IN Clause:
SELECT column1, column2....columnN
FROM
table_name
WHERE column_name IN (val-1, val-2,...val-N);