question in mysql

Discussion in 'PHP' started by t6werserv, Jan 23, 2010.

  1. #1
    I want the whole set of fields from another table for mysql
     
    t6werserv, Jan 23, 2010 IP
  2. FCM

    FCM Well-Known Member

    Messages:
    669
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    155
    #2
    What? You mean

    
    SELECT * FROM [table] WHERE 1;
    
    Code (markup):
     
    FCM, Jan 23, 2010 IP
  3. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You don't need the WHERE 1 either
     
    JAY6390, Jan 23, 2010 IP
  4. t6werserv

    t6werserv Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes but, Beside this code number to extract a table from another table
     
    t6werserv, Jan 23, 2010 IP
  5. t6werserv

    t6werserv Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Want the whole table and the transfer of value on another table
     
    t6werserv, Jan 23, 2010 IP
  6. dmanto2two

    dmanto2two Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not sure what you mean. But if you mean you want to move all data from on table into another you could query all of the info put it into an array and insert it into the new table.
     
    dmanto2two, Jan 23, 2010 IP
  7. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #7
    JAY6390, Jan 23, 2010 IP