Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 48647 invoked from network); 7 Jun 2010 14:08:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 14:08:38 -0000 Received: (qmail 12877 invoked by uid 500); 7 Jun 2010 14:08:38 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 12841 invoked by uid 500); 7 Jun 2010 14:08: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 12834 invoked by uid 99); 7 Jun 2010 14:08:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 14:08:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL 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; Mon, 07 Jun 2010 14:08:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OLczs-0003Tb-OA for derby-user@db.apache.org; Mon, 07 Jun 2010 07:08:12 -0700 Message-ID: <28805729.post@talk.nabble.com> Date: Mon, 7 Jun 2010 07:08:12 -0700 (PDT) From: pb2208 To: derby-user@db.apache.org Subject: Re: Problem with Column Names In-Reply-To: <4C0CFAA5.2050308@Sun.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pete.beatty@gmail.com References: <28805238.post@talk.nabble.com> <4C0CF74E.8000200@optrak.co.uk> <4C0CFAA5.2050308@Sun.COM> You bring up an interesting point. I was thinking about using an import for the delimted file but ws unsure about the ability to dynamically create a table from the file. Is this possible? As for the Excel files I was going to use POI to read the data. I don't know of an import that will import an Excel sheet from an Excel file. Do you know of one? Kristian Waagan-4 wrote: > > On 07.06.10 15:42, Mark Thornton wrote: >> On 07/06/2010 14:36, Brett Wooldridge wrote: >>> It is not valid in SQL to have column name (or other identifiers) >>> that begin with a numeric character. You're going to have to code >>> specifically for this case. >>> >>> >> Quoted identifiers are (in standard SQL) permitted to be entirely >> numeric. >> >> create table mytab ("393" decimal(3)) >> >> should work. > > This statement does work for me (tested on trunk), as does > > ij> create table "999" ("393" decimal(3)); > > Are you sure you are quoting the identifier names correctly, both when > creating and accessing them? > Also, are you created the tables/columns manually, or are you trying to > use an import procedure? > > > Regards, > -- > Kristian > > > -- View this message in context: http://old.nabble.com/Problem-with-Column-Names-tp28805238p28805729.html Sent from the Apache Derby Users mailing list archive at Nabble.com.