1.

How would a stored function named PI() written in the database ‘sampdb’ be called?(a) PI()(b) sampdb.PI()(c) MySQL.PI()(d) db.PI()I got this question in quiz.I'd like to ask this question from Updating MySQL in section General MySQL Administration of MySQL

Answer»

Correct answer is (b) sampdb.PI()

To EXPLAIN: 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.



Discussion

No Comment Found

Related InterviewSolutions