SQL Syntax
In this page, we list the SQL syntax for each of the SQL commands in this tutorial, making this an easy reference for someone to learn SQL. For detailed explanations of each SQL syntax, please go to the individual section by clicking on the keyword. The purpose of this page is to have a quick reference page for SQL syntax, so you can learn SQL more quickly. Bookmark this page now by pressing Control-D so you can have this syntax page handy. You can also download a 1-page PDF version here. Select Statement SELECT "column_name" FROM "table_name"; Distinct SELECT DISTINCT "column_name" FROM "table_name"; Where SELECT "column_name" FROM "table_name" WHERE "condition"; And/Or SELECT "column_name" FROM "table_name" WHERE "simple condition" {[AND|OR] "simple condition"}+; In SELECT "column_name" FROM "table_name" WHERE "c...