Subject | Re: Generator question |
---|---|
Author | kajtarl |
Post date | 2009-05-14T10:02:56Z |
> I tried this:Hi,
>
> SET GENERATOR GEN_INVOICE_ID TO :A_RECYCLE_NO;
>
> but it won't accept it, stating that its a parsing error.
you can't use SET GENERATOR in PSQL. Try the next instead:
A_RECYCLE_NO = GEN_ID(GEN_INVOICE_ID,A_RECYCLE_NO - GEN_ID(GEN_INVOICE_ID,0));
Regards
Kajtar Laszlo