Save
Databases Final
STORED PROCEDURE
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
tiana okane
Visit profile
Cards (9)
Stored
Procedures
A pre-written block of SQL statements that is saved in the database (pre-compiled), that you can
call time
and
time
again
View source
Stored
Procedures
They can be invoked with a
call
statement
They are used to encapsulate
repetitive
or complex
database
operations
View source
Creating
a Stored Procedure
1.
Change
the delimiter
2. CREATE
PROCEDURE
procedure_name (param_spec1, param_spec2, ... )
3.
BEGIN
4.
SQL
statements
5.
END
6.
Change
the delimiter back
View source
IN
parameter
Allows you to
pass
values into the
procedure
View source
OUT
parameter
Allows you to pass value back from procedure to the
calling
program
View source
INOUT
parameter
Allows you to both
pass
and
extract
values
View source
Calling
a Stored Procedure
CALL procedure_name (
param_spec1
,
param_spec2
, ...);
View source
There are
2
ways to view the created Stored Procedures:
ROUTINES & PROCEDURES buttons
View source
Dropping
a Stored Procedure
DROP
procedure_
name
;
View source
See similar decks
1.3.2 Databases
OCR A-Level Computer Science > 1.3 Exchanging data
46 cards
10.1.2 Database management systems (DBMS)
AQA A-Level Computer Science > 10.0 Fundamentals of databases > 10.1 Database concepts
74 cards
10.0 Fundamentals of databases
AQA A-Level Computer Science
743 cards
10.1 Database concepts
AQA A-Level Computer Science > 10.0 Fundamentals of databases
99 cards
4.1.5 Final Submission
Edexcel A-Level English Literature > Component 4: Coursework > 4.1 Comparative Essay
33 cards
1.4.6 Research Procedures
AQA GCSE Psychology > Unit 1: Cognition and Behaviour > 1.4 Research Methods
61 cards
11.5 Research Procedures
Edexcel GCSE Psychology > Topic 11: Research Methods – How do you carry out psychological research?
233 cards
11.5 Research Procedures
Edexcel GCSE Psychology > Topic 11: Research Methods – How do you carry out psychological research?
204 cards
10.2 Relational databases
AQA A-Level Computer Science > 10.0 Fundamentals of databases
143 cards
1.1.5 Functions and procedures
AQA A-Level Computer Science > 1.0 Fundamentals of programming > 1.1 Programming concepts
65 cards
2.3.2 Method and Procedure
OCR GCSE Psychology > Unit 2: Development > 2.3 Research Study: Piagets Three Mountains Task
56 cards
1.1.1 Identifying Different Energy Stores
GCSE Physics > Unit 1: Energy > 1.1 Energy Stores and Systems
68 cards
16.3 Final accounts of limited companies
AQA A-Level Accounting > 16. Accounting for limited companies
72 cards
6.6. Final Submission
OCR A-Level English Literature > Component 03: Literature Post-1900 > 6. Independent Study
84 cards
3.7.1 Database concepts
AQA GCSE Computer Science > 3.7 Relational databases and structured query language (SQL)
37 cards
10.2.2 Normalization
AQA A-Level Computer Science > 10.0 Fundamentals of databases > 10.2 Relational databases
113 cards
10.1.1 Data models
AQA A-Level Computer Science > 10.0 Fundamentals of databases > 10.1 Database concepts
25 cards
3.4 Functions and Procedures
AP Computer Science Principles > Big Idea 3: Algorithms and Programming
43 cards
1.1 Energy Stores and Systems
AQA GCSE Physics > Unit 1: Energy
114 cards
13.2. Implementing Experimental Procedures
Edexcel A-Level Physics > 13. Practical Skills in Physics
35 cards
3.5 Selecting Procedures for Calculating Derivatives
AP Calculus BC > Unit 3: Differentiation: Composite, Implicit, and Inverse Functions
35 cards