MySQL Crash Course: A Hands-on Introduction to Database Development

  • 4h 27m
  • Rick Silva
  • No Starch Press
  • 2023

MySQL Crash Course is a fast-paced, no-nonsense introduction to relational database development. It’s filled with practical examples and expert advice that will have you up and running quickly.

You’ll learn the basics of SQL, how to create a database, craft SQL queries to extract data, and work with events, procedures, and functions. You’ll see how to add constraints to tables to enforce rules about permitted data and use indexes to accelerate data retrieval. You’ll even explore how to call MySQL from PHP, Python, and Java.

Three final projects will show you how to build a weather database from scratch, use triggers to prevent errors in an election database, and use views to protect sensitive data in a salary database.

You’ll also learn how to:

  • Query database tables for specific information, order the results, comment SQL code, and deal with null values
  • Define table columns to hold strings, integers, and dates, and determine what data types to use
  • Join multiple database tables as well as use temporary tables, common table expressions, derived tables, and subqueries
  • Add, change, and remove data from tables, create views based on specific queries, write reusable stored routines, and automate and schedule events

The perfect quick-start resource for database developers, MySQL Crash Course will arm you with the tools you need to build and manage fast, powerful, and secure MySQL-based data storage systems.

About the Author

Rick Silva is a software developer with decades of database experience. Silva has worked at Harvard Business School, Zipcar, and various financial services companies. A Boston native and a Boston College alum, he now lives in the Raleigh, NC area with his wife Patti and his dog Dixie. When heʼs not joining database tables, heʼs playing banjo at a local bluegrass jam.

In this Book

  • Introduction
  • Installing MySQL and Tools
  • Creating Databases and Tables
  • Introduction to SQL
  • MySQL Data Types
  • Joining Database Tables
  • Performing Complex Joins with Multiple Tables
  • Comparing Values
  • Calling Built-In MySQL Functions
  • Inserting, Updating, and Deleting Data
  • Creating Views
  • Creating Functions and Procedures
  • Creating Triggers
  • Creating Events
  • Tips and Tricks
  • Calling MySQL from Programming Languages
  • Building a Weather Database
  • Tracking Changes to Voter Data with Triggers
  • Protecting Salary Data with Views
  • Afterword
SHOW MORE
FREE ACCESS