Home » MYSQL » Mysql Setup » Question
  1. How would a stored function named PI() written in the database ‘sampdb’ 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.