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
Sage CRM secure web link for external users
Deployment
mcafee EPO script to remove agent and virusscan
Delphi Email Blaster - possibly using Report Builder and PsRBExportDevices
Office 2010 MSI GPO Installation
How do I trawl through an Excel 2003 range and copy certain cells of certain rows to another worksheet in VBA
Spread sheet formula to reference entire row/column, or at least the number of rows/columns available
Schema Changes by User
Insert into MySQL Table from MSSQL Insert Trigger
SBS 2008 shared folder permissions problem - read only - need full control