Chapter 7. Learning Basic SQL Commands
This hour takes a break from all that PHP you’ve been learning and provides a primer on SQL syntax, which you will use to create and manipulate your MySQL database tables. This is a very hands-on hour, and it assumes that you are able to issue queries through the MySQL monitor on Windows or Linux/Unix. Alternatively, if you use a GUI to MySQL, this hour assumes you know the methods for issuing queries through those interfaces.
In this hour, you will learn
The basic MySQL data types
How to use the
CREATE TABLEcommand to create a tableHow to use the
INSERTcommand to enter recordsHow to use the
SELECTcommand to retrieve recordsHow to use basic functions, the
WHEREclause, and theGROUP BYclause inSELECTexpressions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access