From oracle-l-bounce@freelists.org Thu Feb 3 18:53:09 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j140r9xG005487 for ; Thu, 3 Feb 2005 18:53:09 -0600 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 j140r9em005483 for ; Thu, 3 Feb 2005 18:53:09 -0600 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 706076C5E6; Thu, 3 Feb 2005 18:52:12 -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 19983-02; Thu, 3 Feb 2005 18:52:12 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E62EE6C899; Thu, 3 Feb 2005 18:52:11 -0500 (EST) Message-ID: <17ECCBDCF27C544583F2CAD928F953261A54C1@memex1.corp.cefs.int> From: "Knight, Jon" To: "'ajoshi977@yahoo.com'" , oracle-l@freelists.org Subject: RE: ** using decode in sql loader Date: Thu, 3 Feb 2005 17:50:23 -0600 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-archive-position: 15778 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: jknight@concordefs.com Precedence: normal Reply-To: jknight@concordefs.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on air891.startdedicated.com X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=ham version=2.60 X-Spam-Level: It looks like you can. >From Oracle's documentation: field1 POSITION(1:4) INTEGER EXTERNAL "decode(:field2, '22', '34', :field1)" Jon Knight -----Original Message----- From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] On Behalf Of A Joshi Sent: Thursday, February 03, 2005 5:43 PM To: oracle-l@freelists.org Subject: ** using decode in sql loader Hi, I would like to use decode in sqlloader to convert data. I have a date field that might have the text 'current' in which case I want to convert it into sysdate. Can that be done? Thanks for your help. --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-l