Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: INSERT or MULTI INSERT
DA Morgan wrote:
< SNIP >
>
> TO_CHAR(dynamo.ORDER_SEQ.nextval).
>
> How do you expect to concatenate a string to a number.
>
> For any further help post Oracle version and the error messages.
> We are unable to look over your shoulder or read your mind.
> --
> Daniel A. Morgan
> Relational theory is not something that is simply a nice-to-have.
> http://www.psoug.org
> damorgan_at_x.washington.edu
> (replace x with u to respond)
Daniel, please make sure of your facts before posting.
Oracle will handle concatenating a number with a string without any problem:
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL> create sequence tkseq;
Sequence created.
SQL> select tkseq.nextval from dual;
NEXTVAL
1
SQL> / NEXTVAL
2
SQL> select 'XXXX'||tkseq.nextval from dual;
'XXXX'||TKSEQ.NEXTVAL
Regards,
Tim Kearsley
HBS Milton Keynes
Received on Fri May 27 2005 - 03:23:52 CDT