A

Admin • 802.91K Points
Coach

Q. Which MySQL function is used to return the current user?

  • (A) USER()
  • (B) CURRENT_USER()
  • (C) SESSION_USER()
  • (D) SYSTEM_USER()
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin
CURRENT_USER() returns the MySQL account used to authenticate the session. USER() also exists but shows user and host from the login string. SESSION_USER() and SYSTEM_USER() are not MySQL functions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.