www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] updating a table based on another database

  1. #1
    Join Date
    Aug 2006
    Posts
    61

    resolved [RESOLVED] updating a table based on another database

    Hi, I've got an update statement:
    Code:
    UPDATE `dnc`.`fl_346`, `dnc`.`fl4q06`
    SET `fl_346`.`no_solicit`='S'
    WHERE `fl_346`.`phone_num` = `fl4q06`.`phone`;
    but I want to try to keep the different state tables in seperate databases, I don't think you can do fl.fl4q06.phone in the where statement though, because it just looks for the fl4q06 table in the dnc database

    any idea how to change this so that I can keep the tables in seperate databases?

    edit: forgot to mention I'm using MySQL 5.0.23
    Last edited by carlh; 11-22-2006 at 09:58 AM.

  2. #2
    Join Date
    Aug 2006
    Posts
    61
    posted too soon, sorry, got it working

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles