Re: Function PostgreSQL 9.2 - Mailing list pgsql-general

From drum.lucas@gmail.com
Subject Re: Function PostgreSQL 9.2
Date
Msg-id CAE_gQfUSvYHVP+FxTs8n+rkj7pip6NA_VoNz1yXuoRa5eBVbGA@mail.gmail.com
Whole thread Raw
In response to Re: Function PostgreSQL 9.2  ("drum.lucas@gmail.com" <drum.lucas@gmail.com>)
Responses Re: Function PostgreSQL 9.2
List pgsql-general
Just forgot to say:


[...]
 
 

Does increment_client_code relate to users or some other table, say clients?


nope.. there is no link between them



If the users.code is empty/null, then the trigger has to get the last number from client_code_increment and put on the users.code column

 


[...]

pgsql-general by date:

Previous
From: "drum.lucas@gmail.com"
Date:
Subject: Re: Function PostgreSQL 9.2
Next
From: "Mike Sofen"
Date:
Subject: Re: Function PostgreSQL 9.2