Skip to main content

SQL Basics

SQL statement

SQL verbs

VERBDescription
SELECTRetrieve data from a table
INSERTAdds data into a table
DELETERemove data from a table
UPDATEModify data in a table
DROPDelete a table
UNIONCombine output from multiple queries
WHEREFilter records based on the conditions
AND/OR/NOTFilter records based on logical conditions
ORDER BYSort records in ascending or descending order

SQL Special Characters

Special CharacterDescription
' and "String delimiters
--, /*, #Comment delimiters
*, %Wildcards
;End SQL statement
=, +, <, >, ()Logical operations