Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: INSERT or MULTI INSERT

Re: INSERT or MULTI INSERT

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 27 May 2005 06:41:05 -0700
Message-ID: <1117201004.986433@yasure>


Carlos wrote:

>>>How do you expect to concatenate a string to a number.

>
>
> Wrong. Though TO_CHAR() is the right method for such concatenation,
> Oracle can manage without it:
>
> SQL> create sequence KKSEQ;
>
> Secuencia creada.
>
> SQL> select 'XXXX'||kkseq.nextval from dual;
>
> 'XXXX'||KKSEQ.NEXTVAL
> --------------------------------------------
> XXXX1
>
> SQL> /
>
> 'XXXX'||KKSEQ.NEXTVAL
> --------------------------------------------
> XXXX2
>
> SQL> /
>
> 'XXXX'||KKSEQ.NEXTVAL
> --------------------------------------------
> XXXX3
>
> I hope your pupils cannot read this, Daniel ;-)
>
> Cheers.

Actually I hope they do. My eyes were drawn to a bad practice and it was late. I have no problem admitting when I am incorrect. I do, however, have a problem with people encouraging bad coding habits.

-- 
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)
Received on Fri May 27 2005 - 08:41:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US