1. Home
  2. Computer Science MCQs
  3. MySQL
  4. . User() function return the current user name and…

Added 19 Jan 2024

. User() function return the current user name and ___________

  1. password
  2. host name Correct answer
  3. both a and b above
  4. database name associated with the user

Correct answer

B. host name

16 views

MCQSEXAM

Explanation

The USER() function returns the current MySQL user name together with the host name the client connected from, in the form user@host — for example root@localhost.

It never returns a password. CURRENT_USER() is related but shows the account MySQL actually used to authenticate you.

Want more practice? Try the full set of Database Management Systems MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs