From oracle-l-bounce@freelists.org  Fri Sep  9 09:33:18 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j89EXIW0019938
 for <oracle-l@orafaq.com>; Fri, 9 Sep 2005 09:33:18 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j89EXCIP019921
 for <oracle-l@orafaq.com>; Fri, 9 Sep 2005 09:33:12 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A11D81EB334;
 Fri,  9 Sep 2005 09:33:05 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 14315-08; Fri, 9 Sep 2005 09:33:05 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 272DD1EB300;
 Fri,  9 Sep 2005 09:33:05 -0500 (EST)
Message-ID: <BAY107-F31C7DBA4BAAC35D078075497980@phx.gbl>
X-Originating-IP: [64.4.51.220]
X-Originating-Email: [joe_dba@hotmail.com]
X-Sender: joe_dba@hotmail.com
From: "Joe Smith" <joe_dba@hotmail.com>
To: oracle-l@freelists.org
Subject: execute immediate 'insert into ...'
Date: Fri, 09 Sep 2005 09:31:13 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-OriginalArrivalTime: 09 Sep 2005 14:31:14.0829 (UTC) FILETIME=[220BA3D0:01C5B54B]
X-archive-position: 25209
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: joe_dba@hotmail.com
Precedence: normal
Reply-To: joe_dba@hotmail.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-mailscan-MailScanner-Information: Please contact the ISP for more information
X-mailscan-MailScanner: Found to be clean
X-MailScanner-From: oracle-l-bounce@freelists.org
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,
 FORGED_HOTMAIL_RCVD2,RCVD_IN_BL_SPAMCOP_NET autolearn=no version=2.63

I am trying to insert records into a table through execute immediate.  The 
number datatypes go in with no problem.  It is the varchar2 and date formats 
that are giving me a problem.


examples:

desc tables test
col1 number,
col2 varchar2(30)
col3 date

execute immediate 'insert into test values ('|| 2 ||', '|| joe ||', '|| 
07-JUN-05 ||')';


I have tried different ways to format the varchar2 and date datatype, but 
keeps giving me an error.

How do I format these datatypes within an execute immediate?

thanks.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--
http://www.freelists.org/webpage/oracle-l

