Difference between revisions of "SQL Syntax Examples"
From Free Knowledge Base- The DUCK Project: information for everyone
m |
m |
||
Line 1: | Line 1: | ||
+ | A list of SQL statements to serve as examples of syntax. | ||
+ | |||
== Examples == | == Examples == | ||
Revision as of 09:39, 1 July 2017
A list of SQL statements to serve as examples of syntax.
Examples
- SELECT * FROM customers;
- SELECT grade, age, reportcategory FROM students WHERE classroom = 3;
- SELECT username FROM usertable WHERE username like "%icol%";
- DESCRIBE TABLE customer;
- SELECT usertable.UserName, Posts.PostID FROM usertable LEFT JOIN Posts ON usertable.UserID = Posts.UserID ORDER BY usertable.UserName;