SQL - Syntax
SQL - Syntax
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 (;).
The most important point to be noted here is that SQL is case insensitive, which means SELECT
and select have same meaning in SQL statements. Whereas, 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 a MySQL server.
https://www.tutorialspoint.com/sql/sql-syntax.htm 1/4
5/22/23, 12:10 PM SQL - Syntax
SQL IN Clause
SELECT column1, column2....columnN
FROM table_name
WHERE column_name IN (val-1, val-2,...val-N);
https://www.tutorialspoint.com/sql/sql-syntax.htm 3/4
5/22/23, 12:10 PM SQL - Syntax
https://www.tutorialspoint.com/sql/sql-syntax.htm 4/4