Article View: borland.public.jbuilder.database
Article #386Re: JBuilders SQL Builder, using functions?!?!?!?
From: John Moore (TeamB)
Date: Wed, 21 Feb 2007 01:23
Date: Wed, 21 Feb 2007 01:23
50 lines
2842 bytes
2842 bytes
Nick wrote: > Just an update... > I tried using different JDBC drivers and had no luck in using subqueries with QueryDataSet in JBuilder 2006. I had to rewrite the Subqueries as Joins instead and this seems to work. I am still not sure if it truelly is a JDBC driver issue or a JBuilder issue. I was unable to find any information regarding my particular problem (running subqueries, 3 levels, wouldn't even work for 2 levels). To any one else with similar issues, good luck, and write Joins instead. > I don't know if you entirely understand the relationship between JBuilder and JDBC.. Basically there is none.. sort of.. The SQL Builder (which I never have used..) and DX are probably the only "interfaces" between JBuilder and JDBC.. I would 'ASSUME' that SQL builder sticks to a specific level of the SQL standard. So.. if you are including a database specific function(s), it will probably complain.. My experience (where I tend to do most of my work) with DX is that it does no validation and just passes the SQL through. (There can be escaping issues..) That leaves JDBC and that is the rub.. JDBC is ONLY an interface API to specific implementations by the various database vendors. (Purchase a good JDBC book, that will do more to helping you on the "java/JBuilder" end than anything..) Therefore, with the possible exception of the SQL Builder (which I never, ever use.. did I say that already..<G>) any issue with SQL and your database is ALWAYS a driver issue. JBuilder could care less.. John.. -- ============================================= TeamB are volunteer helpers. Please DO NOT REPLY VIA EMAIL! Post all questions and replies to this newsgroup ONLY For papers on DataExpress, Applets, JSP, and Web Development go to: http://www.microps.com/mps/paperFAQ.html ====================================================
Technical Details
Message-ID:
<45db9ecf$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45d62c8a$1@newsgroups.borland.com> <45db3a0e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,9a57ca76b54fe400 X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 20 Feb 2007 17:23:02 -0800 From: "John Moore (TeamB)" <jbm@microps.com> User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.database Subject: Re: JBuilders SQL Builder, using functions?!?!?!? References: <45d62c8a$1@newsgroups.borland.com> <45db3a0e$1@newsgroups.borland.com> In-Reply-To: <45db3a0e$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.137.13.178 Message-ID: <45db9ecf$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172020943 207.137.13.178 (20 Feb 2007 17:22:23 -0800) Lines: 50 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail