adplus-dvertising
frame-decoration

Question

Suppose a stored function named PI() is written in the database ‘sampdb’. How would it be called?

a.

PI()

b.

sampdb.PI()

c.

MySQL.PI()

d.

db.PI()

Posted under MySQL Database

Answer: (b).sampdb.PI()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Suppose a stored function named PI() is written in the database ‘sampdb’. How would it be called?

Similar Questions

Discover Related MCQs

Q. Which privilege must be given to the database to create a stored function or procedure?

Q. Which variable is set to zero when automatic privilege granting is not needed?

Q. Which procedure parameter enables the caller to pass in a value and get back a value?

Q. The IN, OUT and INOUT keywords do not apply to stored functions.

Q. For the same input parameters, if the stored function returns the same result, it is called _____________

Q. Triggers enable to enforce data integrity constraints.

Q. Which statement is used to create a trigger?

Q. For which of the following are triggers not supported?

Q. Which statement is used to remove a trigger?

Q. Before MySQL 5.1.6 which privilege was required to create and drop triggers?

Q. The TRIGGER privilege is used for the table to be able to create and drop triggers for it.

Q. Which of these is a stored program associated with a schedule?

Q. The event scheduler does not run by default.

Q. Which of the following lines is used to turn on the event scheduler?

Q. Which statement is used to check the status of the event scheduler at runtime?

Q. Which value of event_scheduler enables checking status but not changing it at runtime?

Q. If the scheduler is stopped, no events run.

Q. Which log does the event scheduler log to?

Q. Which clause specifies periodic execution at fixed intervals?

Q. To create or drop events for a database, which privilege should be granted?