Article View: borland.public.jbuilder.java.language
Article #7973Re: How do I Pass parameters to a QueryDataset?
From: Torsten Welches
Date: Fri, 04 May 2001 06:22
Date: Fri, 04 May 2001 06:22
38 lines
2116 bytes
2116 bytes
Srinivas, check the "DataExpress/ParameterizedQuery" sample, it shows how to do that. As I already told you on the Borland chat I believe that the source of you problems is your use of the ODBCJDBC bridge. It is notorious for having problems with advanced JDBC features like an updateable resultset. You are trying to change colB, so that it contains the values of colA "+ x", right? You want that for all records of your db, right? I still believe that a single UPDATE will do the trick, something like: "UPDATE table SET colB = colA + x" That would affect all rows. You can also apply a WHERE if you want. Using one simple UPDATE will guarantee the best performance possible. You told me that ~900.000 rows will be affected, right? BTW - is there a DBA available? It should be his job to inform you about the best SQL statement for the task at hand and the given database. Torsten "Srinivas Lanka" <srinivas_lanka@horizon-bcbsnj.com> wrote: > >Hello! > How do I pass parameters to a QueryDataSet? >I have the SQL query as > select * from TABLE_A where TABLE_A.COL_1 = ? >Can someone please let me know the steps to achieve this. > >Thanks >
Technical Details
Message-ID:
<3af24ab4$2_2@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3af1b8fa$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d5c8a96c32a2ba45 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-03 23:40:03 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Subject: Re: How do I Pass parameters to a QueryDataset? Newsgroups: borland.public.jbuilder.java.language X-User-Info: 193.158.55.74 193.158.55.74 References: <3af1b8fa$1_1@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3af24ab4$2_2@dnews> Date: 3 May 2001 23:22:44 -0700 X-Trace: dnews 988957364 207.105.83.65 (3 May 2001 23:22:44 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews