Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 33218 invoked from network); 14 Feb 2008 12:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2008 12:25:45 -0000 Received: (qmail 4562 invoked by uid 500); 14 Feb 2008 12:25:38 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 4539 invoked by uid 500); 14 Feb 2008 12:25:38 -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 4526 invoked by uid 99); 14 Feb 2008 12:25:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 04:25:37 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.24] (HELO sca-ea-mail-1.sun.com) (192.18.43.24) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 12:24:51 +0000 Received: from dm-norway-02.uk.sun.com ([129.156.101.226]) by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m1ECP9eF016012 for ; Thu, 14 Feb 2008 12:25:10 GMT Received: from clustra.norway.sun.com (clustra.Norway.Sun.COM [129.159.119.10]) by dm-norway-02.uk.sun.com (8.13.6+Sun/8.13.6/ENSMAIL,v2.2) with SMTP id m1ECP6bW025453 for ; Thu, 14 Feb 2008 12:25:06 GMT Received: (qmail 22482 invoked from network); 14 Feb 2008 12:25:06 -0000 Received: from khepri35.norway.sun.com (129.159.112.247) by clustra.norway.sun.com with QMQP; 14 Feb 2008 12:25:06 -0000 Date: Thu, 14 Feb 2008 13:25:06 +0100 From: "Bernt M. Johnsen" To: Derby Discussion Subject: Re: sql format in *.sql files Message-ID: <20080214122506.GB29038@khepri35.norway.sun.com> References: <15479296.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+pHx0qQiF2pBVqBT" Content-Disposition: inline In-Reply-To: <15479296.post@talk.nabble.com> Organization: Sun Microsystems User-Agent: Mutt/1.5.7i X-Virus-Checked: Checked by ClamAV on apache.org --+pHx0qQiF2pBVqBT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >>>>>>>>>>>> dexter195 wrote (2008-02-14 04:20:13): >=20 > Hi >=20 > I have a load of sql files that i need to be able to import into derby.= =20 >=20 > What delimiter do i need at the end of the statements in order for derby = to > see it as a seperate query. i presumed that this would be ; but this does= nt > work. I've tried all variants i can think of but none of them work. >=20 > insert into MeasurementColumn values > ("test","test",1,"test",2,3,4,5,"test","test","test","test",6); > insert into MeasurementColumn values > ("test1","test1",1,"test1",2,3,4,5,"test1","test1","test1","test1",6); >=20 > ERROR 42X01: Syntax error: Encountered ";" at line 2, column 129. The statement is syntactically incorrect. You should use ' not " to delimit strings in SQL, like this: insert into MeasurementColumn values ('test','test',1,'test',2,3,4,5,'test','test','test','test',6); insert into MeasurementColumn values ('test1','test1',1,'test1',2,3,4,5,'test1','test1','test1','test1',6); --=20 Bernt Marius Johnsen, Database Technology Group,=20 Staff Engineer, Derby/Java DB Sun Microsystems, Trondheim, Norway --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (SunOS) iD8DBQFHtDMhlFBD9TXBAPARAtY/AJ4oMcLKqGRhEf1e/NIDNZ9E2s2F+wCglxWd U6Ir5CN2bi8JghEvjrEv2gI= =AGVV -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT--