Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: how to define a pseudo auto value column in oracle?
Mark C. Stock wrote:
> "Norman Dunbar" <Norman_at_Dunbar-it.co.uk.REMOVETHIS> wrote in message
<SNIP>
>>Now, you can't use this as the default for a column in a table, but you >>don't now have to remember the name of the 'XYZ' sequence either - granted >>you do have to remember the name of the function though :o) >>
<SNIP>
>
>
> create table autonumber ( id number default autovalue(), text varchar2(30) )
> *
> ERROR at line 1:
> ORA-04044: procedure, function, package, or type is not allowed here
>
> :-(
>
> ++ mcs
>
>
Afternoon Mark,
I did write 'Now, you can't use this as the default for a column in a table ....' :o)
I suppose I could have made it clearer that this was simply an exercise in not having to remember the sequence name.
Cheers,
Norm.
Received on Tue Feb 08 2005 - 09:55:11 CST