Mar 13, 2006 #1 KYons IS-IT--Management Aug 25, 2005 4 DE Hallo , i try to add the current User every time he inserts an new row in the Table. Can some body help .. Thanx
Hallo , i try to add the current User every time he inserts an new row in the Table. Can some body help .. Thanx
Mar 13, 2006 #2 ceco IS-IT--Management Oct 16, 2002 229 BG there are some functions here, you may choose from http://www.postgresql.org/docs/8.1/interactive/functions-info.html 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 Upvote 0 Downvote
there are some functions here, you may choose from http://www.postgresql.org/docs/8.1/interactive/functions-info.html 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
Mar 14, 2006 Thread starter #3 KYons IS-IT--Management Aug 25, 2005 4 DE Thanx Ceco .. it works with "current_user" in the field for standard value Upvote 0 Downvote