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 > Data Access, Manipulation & Batch Languages > ANSI SQL > Client Access AS400 ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-03, 00:00
drewoj drewoj is offline
Registered User
 
Join Date: Aug 2003
Posts: 1
Question Client Access AS400 ODBC

I hope this is simple stuff for you gurus, I'm just a lowly solutions engineer. I need an SQL statement that will update a field in a single record when multiple records match the condition. Something (like 'top one') has to limit the number of records updated to 1. It would be something like this... update tablename set field1 = 'X' where field1 = '' and field2 <> ''
This would update multiple records if they exist, how do I hit just 1 (any) record? I'm working with VBA, I have an ODBC module that has a 'max rows' property but I'm pretty certain that just limits the records returned on a select. Thanks, Drew W.
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