From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9986f50b2446f516 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: gnade odbc and join tables References: <1265b06d-298d-4d1d-ae74-61262605262f@x27g2000yqb.googlegroups.com> Date: Tue, 06 Jul 2010 02:09:55 -0400 Message-ID: <82lj9pm98s.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:0MxOwVOaBu/yG7JZ9V+MlI4Rm3Y= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 3fe564c32c8c5e197caa718548 Xref: g2news1.google.com comp.lang.ada:12211 Date: 2010-07-06T02:09:55-04:00 List-Id: tonyg writes: > I'm adapting the odbc demo in gnade to learn more about it. I want to > be able to join tables and do a select according to the query string > included in the code fragment. Others have commented on your SQL syntax. One way I find useful to debug things like this is to run the query in an interactive front end for the database involved; the sql error messages tend to be better, and it's easier to modify the syntax and try again. MySQL on Windows has a nice GUI for this, including some help on SQL syntax (although it tends to leave out the basic stuff and focus on the advanced stuff). -- -- Stephe