Article View: borland.public.vdbase.data.sql
Article #193Re: Please help - Database Problems
From: Ken Mayer [dBVIPS/TeamB]
Date: Thu, 18 Mar 1999 00:00
Date: Thu, 18 Mar 1999 00:00
29 lines
1406 bytes
1406 bytes
"Jon Carter" <jcarter@sfo.co.uk> wrote: >Hi - I'd be very grateful if someone could help me with a couple of problems >I'm having : > >1. I am using this SQL statement with a Paradox database - > >SELECT * FROM orders WHERE date = #1/3/99# > >but am getting an error - is it because 'date' is a reserved SQL word? Will >I have to rename the date field in the database and change the app code? You're getting an error because the pound signs are something local SQL doesn't understand, among other things. However, yes, you are also running into an error because "date" is a reserved word. Try: select * from orders where orders."date" = "1/3/99" Ken --- Ken Mayer [dBVIPS/TeamB] VdBASE7 Tutorial, HOW TOs, and dUFLP library: http://www.apptools.com/dbase/kenstuff (which is a mirror of:) http://www.mindspring.com/~hirschv/dbase/dbase.htm dBASE 2000: http://www.dbase2000.com
Technical Details
Message-ID:
<36f04266.1478858@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<921664421.685408@ns2.saturn.ispc.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,98435b5ff13bc6af,start X-Google-Attributes: gidff5a1,public From: supportInfo@borland.com (Ken Mayer [dBVIPS/TeamB]) Subject: Re: Please help - Database Problems Date: 1999/03/18 Message-ID: <36f04266.1478858@forums.borland.com> X-Deja-AN: 455923570 References: <921664421.685408@ns2.saturn.ispc.net> Organization: Golden Stag Productions Reply-To: teamb@opto-pps.com Newsgroups: borland.public.vdbase.data.sql