If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Bad Query or does the ODBC driver not support this?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-05, 11:51
sammydafish sammydafish is offline
Registered User
 
Join Date: Feb 2004
Posts: 21
Bad Query or does the ODBC driver not support this?

I'm trying to do what seems to be a simple update, but I'm not sure if it's a good query or not.

Code:
UPDATE Dataflex.dbo.IP042F68 SET PRODUCT='UCORES', GROUP_Col='TSF' WHERE ITEM_NO ='TSF-7070-102-57-25-0000' AND LOC='NY' AND PRODUCT='MISC'
does this not work because the "PRODUCT" field is used in both the WHERE part of the query as well as being a field that's updated? The database is indexed by all the fields in the WHERE clause. Not using all the fields makes the query take about 20 mins (using only the "ITEM_NO" field). Using the query as above takes about one second and says that it updated one row, but really doesn't update anything. Should I be able to do this?

I'm using Connx ODBC driver on a DataFlex database.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On