How many of the following can be used in stored functions?
PREPARE, EXECUTE, DEALLOCATE PREPARE
PREPARE, EXECUTE, DEALLOCATE PREPAREA. 0
B. 1
C. 2
D. 3
Answer: Option A
Solution (By Examveda Team)
This question asks about what commands are allowed inside stored functions in MySQL. Stored functions are like reusable code blocks you can call from your SQL queries.Let's break down the commands:
* PREPARE: This command prepares a SQL statement for later execution.
* EXECUTE: This command actually runs a prepared SQL statement.
* DEALLOCATE PREPARE: This command cleans up a prepared statement, freeing up resources.
Stored functions have limitations. They can't directly work with prepared statements (PREPARE, EXECUTE, DEALLOCATE PREPARE).
The correct answer: Option A: 0
None of these commands can be used inside stored functions.
Related Questions on MySQL Miscellaneous
How is communication established with MySQL?
A. SQL
B. Network calls
C. A programming language like C++
D. APIs
Which type of database management system is MySQL?
A. Object-oriented
B. Hierarchical
C. Relational
D. Network

Join The Discussion