Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Posts
    130

    Unanswered: how to move tables from one database from another database

    Hello All,


    I want to move some tables from one database to another one. How to do this in MySQL.


    Thanks

  2. #2
    Join Date
    Apr 2007
    Posts
    130
    By googling, I found the following solution

    Code:
    RENAME TABLE current_db.tbl_name TO other_db.tbl_name;

  3. #3
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    what happened when you tested that?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  4. #4
    Join Date
    Apr 2007
    Posts
    130
    it works well.

  5. #5
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    excellent!!

    that's yet another feature of mysql i did not know
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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