How to determine the currently logged on username

Поиск
Список
Период
Сортировка
Искать

How to determine the currently logged on username

От:
Chris Travers <chris@travelamericas.com>
Дата:
Hi all;

I will be writing a stored proceedure that will allow a currently logged 
in user to change his/her password.  The function needs to be only able 
to change the password of the currently logged in user, so it will only 
take a varchar() argument and needs to look up the username of the 
currently logged in user.  How do I do this?  Any ideas?

Best Wishes,
Chris Travers



Re: How to determine the currently logged on username

От:
Richard Huxton <richardh@archonet.com>
Дата:
On Friday 18 July 2003 14:41, Chris Travers wrote:
> Hi all;
>
> I will be writing a stored proceedure that will allow a currently logged
> in user to change his/her password.  The function needs to be only able
> to change the password of the currently logged in user, so it will only
> take a varchar() argument and needs to look up the username of the
> currently logged in user.  How do I do this?  Any ideas?

select CURRENT_USER;

--  Richard Huxton Archonet Ltd

FAQ