USER() function returns hostname
Posted by:
D Green
Date: July 20, 2005 11:11AM
Hi,
Can anyone tell me how to return the username of the currently logged in user without the hostname included.
e.g. at the moment:-
SELECT USER() AS username
->
root@localhost
but I really want
SELECT (USER) AS username
->
root
Is there a function to do this, or is there a string search (and chop up) set of functions I'd need to use?
Thanks,
David
Subject
Written By
Posted
USER() function returns hostname
July 20, 2005 11:11AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.