Finals Reviewer pt2 Flashcards
In MySQL, the ??? table contains all the values we inserted using INSERT command.
inserted
or SELECT
A trigger that executes when INSERT, UPDATE, and DELETE commands modify data in a table or view.
DML trigger /
Data Manipulation Language trigger
A trigger that executes in response to a DDL statement that is often used to make database schema changes.
DDL trigger /
Data Definition Language trigger
A ??? is a set of transact-SQL (T-SQL) statements that is compiled and stored as a single database object for later repetitive use.
stored procedure
A ??? defines the name of the stored procedure, the input and output parameters, and some miscellaneous processing options.
procedure header / header
A ??? is part of a stored procedure that contains one or more transact sql statements to be executed at runtime
procedure body / body
A ??? parameter is part of a stored procedure that allows it to accept values and serve as variables.
input
A ??? parameter is part of a stored procedure that allows it to return a value and serve as variables.
output
How many characters can a stored procedure name contain?
128 Characters
True or False
Stored procedures may contain up to 2,200 input and output parameters.
False
can only contain 2,100
True or False
the maximum size of the body of the stored procedure is 128MB
True
in SQL server, we can use execute, the actual name of the procedure or ??? to execute the stored procedure.
EXEC / execute
A ??? temporary table is visible only to the session that it is created from and is dropped automatically when the connection is closed.
local
??? temporary tables are available to all users and are automatically dropped when the last user accessing the table disconnects from the database.
global
in SQL server, what symbol is used to denote a temporary table, please indicate the symbol only.
#
True or False
In scalar functions the return value is a standard data type but cannot be a text , Ntext, image or timestamp.
True
??? functions are often used as “parameterised views” as they can be included in place of tables in a query and can accept arguments.
table-valued
??? functions contain a single statement, which must be a SELECT. The results of the query become the return value of the functions
Scalar
True or False
in MySQL, we use DROP and CREATE when altering functions.
True
A type of backup that creates a complete backup of the database as well as part of the transaction log, so the database can be recovered.
Full Backup