help on the query

Discussion in 'Databases' started by pngseo, Apr 9, 2008.

  1. #1
    i have a database with table name like:

    satable1
    satable2
    satable3
    satable4
    satable5
    and many in the same format

    now i want to make it like this

    patable1
    patable2
    patable3
    patable4
    patable5

    and so on

    Is it possible with a single command

    pls help
    Thanks in advance
     
    pngseo, Apr 9, 2008 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    export the db from phpmysql admin .

    the edit the .sql file and replace the names of tables

    satable->patable


    import the db file again by first dropping all tables

    Regards

    Alex
     
    kmap, Apr 14, 2008 IP