Databases
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Databases

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old June 20th, 2008, 06:31 AM
Gregory Williamson
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Need to update all entries of one table based on an earlier backup

For reasons best left unmentioned, I need to update entries in a table from a backup; I need to do all entries.

For reasons eluding my sleep deprived eyes this fails in every variation I can think of:

update foo set where foo.foo_id = foo_old.foo_id;
ERRR: missing FRM-clause entry for table "foo_old"

Could someone please hit me with a clue-stick ? This is crucial and yet I am stumbling over something. Since I am not updating foo_old I am baffled as to what this messsage really means. I've tried "where foo_old.foo_id = foo.foo_id same message.

TIA,

Greg Williamson
Senior DBA
DigitalGlobe

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information and must be protected in accordance with those provisions. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

(My corporate masters made me say this.)

Reply With Quote
  #2  
Old June 20th, 2008, 06:31 AM
Gregory Williamson
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Need to update all entries of one table based on an earlier backup

Thomas Pundt wrote:

Freitag, 20. Juni 2008, Gregory Williamson wrote:
<snip>
Does

update foo
set foo.foo_name2 = foo_old.foo_name2
from foo_old
where foo.foo_id = foo_old.foo_id;

work for you?

Thanks to all for pointing out the FRM clause.!

"UPDATE foo set foo_name2 = foo_old.foo_name2 FRM foo_old WHERE foo.foo_id = foo_old.foo_id;" did the trick.

For some reason I keep forgetting that bit. Especially when under stress in the wee hours of the morn. Back to sleep ZZZzzzzZZZZ

And thanks again !

GSW

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Databases > Need to update all entries of one table based on an earlier backup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway