Google News
logo
MySQL - Quiz(MCQ)
How would a stored function named PI() written in the database 'sampdb' be called?
A)
PI()
B)
db.PI()
C)
MySQL.PI()
D)
sampdb.PI()

Correct Answer :   PI()


Explanation : When a stored function is defined with the same name as a built in function, the function name should be qualified with the database name when it is invoked. The function ‘PI()’ is built in.

Advertisement