MySQL Question

Discussion in 'Plugin Development' started by MaTaMoR_, May 6, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    MaTaMoR_

    Hi, im trying to develope a plugin what need mysql, so i want to know how can i store a list assigned to a player.

    Something like:
    Code:
    "INSERT INTO `Table` (`ID`, `List`) VALUES (?, ?);"
    
     
  2. Offline

    RingOfStorms

    For lists/arrays you can serialize the data and save it into the database as a TEXT/BLOB and then deserialize it when you read it again. A good option for this is using GSON to very easily serialize and deserialize.
     
  3. Offline

    1Rogue Retired Staff

    You don't store lists in sql, you store multiple rows
     
    Konato_K and MaTaMoR_ like this.
  4. Offline

    MaTaMoR_

    I see, but how i can do that ?
     
  5. Offline

    RainoBoy97

    relationships
     
  6. Offline

    MaTaMoR_

    Mega reply, everything is solved now.
     
  7. Offline

    RainoBoy97

Thread Status:
Not open for further replies.

Share This Page