Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 50635 invoked from network); 17 Mar 2009 13:26:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2009 13:26:19 -0000 Received: (qmail 76707 invoked by uid 500); 17 Mar 2009 13:26:17 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 76686 invoked by uid 500); 17 Mar 2009 13:26:16 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 76677 invoked by uid 99); 17 Mar 2009 13:26:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 06:26:16 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 13:26:09 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LjZIi-00029G-KE for derby-user@db.apache.org; Tue, 17 Mar 2009 06:25:48 -0700 Message-ID: <22558480.post@talk.nabble.com> Date: Tue, 17 Mar 2009 06:25:48 -0700 (PDT) From: bigblop To: derby-user@db.apache.org Subject: "create table if not exists" ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: fedevaps@yahoo.dk X-Virus-Checked: Checked by ClamAV on apache.org I have this line i a derby script: create table derbyDB(num int, addr varchar(40)); But the second time I run the script I get: Table/View 'DERBYDB' already exists in Schema 'APP'. [SQL State=X0Y32, DB Errorcode=20000] In mySQL I could use IF NOT EXISTS like: create table if not exists derbyDB(num int, addr varchar(40)); But I get an error when doing that with Derby. Is there something equivalent in derby to IF NOT EXISTS ? -- View this message in context: http://www.nabble.com/%22create-table-if-not-exists%22---tp22558480p22558480.html Sent from the Apache Derby Users mailing list archive at Nabble.com.