Understanding basic SQL syntax
It's important to understand SQL syntax – especially now that we will be interacting with a SQL "shell" via MySQL. Essentially, the syntax is the language of the system, applications, and devices you are interacting with, so it is extremely important that you know some basics and how to use the syntax.
The following is a list of basic commands that fall within MySQL syntax:
SELECT
: Extracts data from a databaseUPDATE
: Updates information in a databaseDELETE
: Deletes data from a databaseSHOW
: Displays data in a database or tableUSE
: Switches to a databaseINSERT INTO
: Inserts new data into a databaseCREATE DATABASE
: Creates a new databaseALTER DATABASE
: Modifies a databaseCREATE TABLE
: Creates a new table
Now that you know some simple syntax, let's go ahead and apply it and start moving around in our new database.