Section Navigation [Toggle] 21 Stored Programs and Views21.1 Defining Stored Programs 21.2 Using Stored Routines (Procedures and Functions) 21.2.1 Stored Routine Syntax 21.2.2 Stored Routines and MySQL Privileges 21.2.3 Stored Routine Metadata 21.2.4 Stored Procedures, Functions, Triggers, and LAST_INSERT_ID() 21.3 Using Triggers 21.4 Using Views 21.5 Binary Logging of Stored Programs Stored