Microsoft
Software
Hardware
Network
Question : SQL 2005 Update Multiple Records
I want to move data from 'userfield1' to '[desc]' in a table called 'files' for a select number of records. It's a total of 211 rows which need to be updated. Each row has a field 'tempid' which is the box # the files are in. There are 15 boxes containing these 211 files. I was going to run the query below, but I don't think it looks correct:
update files, set [desc] = userfield1
where tempid in ('0028903',
'0028907',
'0036817',
'0036814',
'0041748',
'0041751',
'0041735',
'0041738',
'0041741',
'0041742',
'0041746',
'0041749',
'0041752',
'0060431',
'0060430')
Thanks.
Tim
Answer : SQL 2005 Update Multiple Records
hi Tim
should be ok if what you want to do is make the desc field = userfield1 for those specific tempid entries.
Random Solutions
Not able to connect SMB to Tiger Server
How do I get this PHP IMAP script to fetch the body of emails? I can't get it to work.
How do I (re-)enable heap memory allocation within a CWinThread-derived class thread function invoked directly from InitInstance?
Javascript to get <TD> inner text in MSIE, FF and Chrome
Out of Office Assistant not working w/Forwarding Configured
How to get lightbox to show over Flash banner?
Strip out ’s in mySQL query | XML Parsing Error: undefined entity
Net Use returns "System error 64 has occurred. The specified network name is no longer available."
How can I dynamically switch web service addresses in .NET without a recompile?
WRT54G2 Linksys router - reset password saving actual configuration