Andrew,

Since you didn't indicate which database you were using, I'm going to assume
it's Microsoft SQL Server.

Look at the table INFORMATION_SCHEMA (I think).  It holds information about
lots of things, such as columns, etc.  You could probably, in a stored
procedure, get access to all the tables that have a column called
"myConsistentColumn" (or whatever) and then loop through the DISTINCT list
you SELECTed from that table, and then do a UPDATE table1 SET
myConsistentColumn = 'New Value' (no WHERE clause), then move on to table2
and so on.

- Will Belden



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2311
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to