Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h0SEDFu17229
 for <oracle-l@orafaq.net>; Tue, 28 Jan 2003 08:13:15 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h0SEDFm17223
 for <oracle-l@orafaq.net>; Tue, 28 Jan 2003 08:13:15 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id CAA33425;
 Tue, 28 Jan 2003 02:56:49 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0053BD8C; Tue, 28 Jan 2003 01:09:13 -0800
Message-ID: <F001.0053BD8C.20030128010913@fatcity.com>
Date: Tue, 28 Jan 2003 01:09:13 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Dmitrii CRETU <dmitrii.cretu@nexui.md>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Dmitrii CRETU <dmitrii.cretu@nexui.md>
Subject: Re: SQL Question
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

try this ("(IDU + 1)"):

select 'insert into XXX (IDU,PEN_ID,LAST_ACCESS,FK_APPLICATION) values
(' || (IDU + 1)
||','||PEN_ID||',sysdate,'||FK_APPLICATION||');' from app_users
where pen_id in (44541,41402,41813) ;

HEheac> Hi,

HEheac> My brain is slow today.... Can someone help me ?

HEheac> I can do :

HEheac> select idu+1 from user_group_members where fk_user
HEheac> in(44541,41402,41813) ;

HEheac>      IDU+1
HEheac> ----------
HEheac>      41411
HEheac>      41821
HEheac>      44546

HEheac> But I can't do :
HEheac> select 'insert into XXX (IDU,PEN_ID,LAST_ACCESS,FK_APPLICATION) values ('||IDU + 1 ||','||PEN_ID||',sysdate,'||FK_APPLICATION||');' from app_users
HEheac> where pen_id in (44541,41402,41813) ;

HEheac> I've got on IDU+1 :

HEheac> ERROR at line 1:
HEheac> ORA-01722: invalid number


HEheac> Best Regards
HEheac> Henrik

HEheac> -- 
HEheac> ---------------------------------------------------------------------------
HEheac> There's fun in being serious.

HEheac> -- Wynton Marsalis

HEheac> Henrik Ekenberg                                Anoto AB


HEheac> -- 
HEheac> Please see the official ORACLE-L FAQ: http://www.orafaq.net


Best regards,
 Dmitrii                            

dmitrii.cretu@nexui.md


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Dmitrii CRETU
  INET: dmitrii.cretu@nexui.md

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

