Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Current User in DB Field

Status
Not open for further replies.

KYons

IS-IT--Management
Aug 25, 2005
4
0
0
DE
Hallo ,

i try to add the current User every time he inserts an new row in the Table. Can some body help ..

Thanx
 
there are some functions here, you may choose from

basicly if you talk for PostgreSQL user (not some kind of your accounting) you can do it like that

create table example (id integer, some_field text, added_by text not null default current_user);

if you are talking for your account there is a way, but first tell which is your case
 
Thanx Ceco ..
it works with "current_user" in the field for standard value
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top