Home » MYSQL » MySQL Stored Functions » Question
  1. Suppose a stored function named PI() is written in the database ‘sampdb’. How would it be called?
    1. db.PI()
    2. MySQL.PI()
    3. PI()
    4. sampdb.PI()
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.