Reader small image

You're reading from  Learn SQL Database Programming

Product typeBook
Published inMay 2020
Reading LevelIntermediate
PublisherPackt
ISBN-139781838984762
Edition1st Edition
Languages
Right arrow
Author (1)
Josephine Bush
Josephine Bush
author image
Josephine Bush

Josephine Bush has over 10 years experience as a Database Administrator. Her experience is extensive and broad-based, including in financial, business, and energy data systems using MySQL, SQL Server, Oracle, and PostgreSQL. She is a Microsoft Certified Solutions Expert: Data Management and Analytics. She holds a BS in Information Technology, an MBA in IT Management, and an MS in Data Analytics.
Read more about Josephine Bush

Right arrow

Chapter 12

  1. A stored query.
  2. Yes, depending on the query in the view. You can update, insert, and delete from a view if it queries one table. You can insert and update from a view if queries multiple tables, but you can't delete.
  1. It lets you store a single data value that can be used during your session's queries.
  2. One of two ways:
  • SET @varname = value;
  • SET @varname := value;
  1. A set of SQL statements stored in the database.
  2. The main difference between a variable and parameter is that parameters are static throughout the procedure, but a variable can be changed during the stored procedure.
  3. IF, CASE, LOOP, REPEAT, WHILE, ITERATE, and LEAVE.
  4. These are a way to extend the functionality of MySQL, and they work much the same other built-in functions work.
  5. A set of actions that run after you insert, update, or delete data in a table.
  6. Allow you to store temporary query...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn SQL Database Programming
Published in: May 2020Publisher: PacktISBN-13: 9781838984762

Author (1)

author image
Josephine Bush

Josephine Bush has over 10 years experience as a Database Administrator. Her experience is extensive and broad-based, including in financial, business, and energy data systems using MySQL, SQL Server, Oracle, and PostgreSQL. She is a Microsoft Certified Solutions Expert: Data Management and Analytics. She holds a BS in Information Technology, an MBA in IT Management, and an MS in Data Analytics.
Read more about Josephine Bush