Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 2.37 KB

Lesson2.md

File metadata and controls

50 lines (38 loc) · 2.37 KB

Lesson 2: Practical Database Usage

In this class, students will learn how to use more complex SQL queries to retrieve information across tables, and interact with data including write operations.

Objective: Students should be able to build CRUD functionality using SQL statements, including INSERT INTO, UPDATE, etc.

Pre-Class Readings

Main Topics

  • INSERT INTO
  • UPDATE
  • Writing SQL in your application
    • Raw SQL strings
    • Parameter validation
    • Escaping
    • Prepared statements
    • Stored procedures
  • Security
    • SQL Injection
    • User GRANTS
    • Enumeration

Reference Material

Homework

  • Write the necessary SQL statements to complete the functionality of your application. This probably includes, at the minimum, the following functionality:
    • Adding a new todo item
    • Changing the name, the due date, or the status of a todo item
    • Marking a todo item as completed
    • Deleting a todo item