Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. MySQL
  4. how to define array's field type?

how to define array's field type?

Scheduled Pinned Locked Moved MySQL
data-structurestutorialquestion
4 Posts 3 Posters 12 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iceman8616
    wrote on last edited by
    #1

    hi everybody! how to define field type which will save a array?

    L 1 Reply Last reply
    0
    • I iceman8616

      hi everybody! how to define field type which will save a array?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, one of the BLOB types should take care of binary data such as byte arrays. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


      I 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, one of the BLOB types should take care of binary data such as byte arrays. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.


        I Offline
        I Offline
        iceman8616
        wrote on last edited by
        #3

        for example: id: 12565,12566,12567 how to define id's field type like int[]?

        M 1 Reply Last reply
        0
        • I iceman8616

          for example: id: 12565,12566,12567 how to define id's field type like int[]?

          M Offline
          M Offline
          Michel Godfroid
          wrote on last edited by
          #4

          How is this related to MySQL? If you want to save an array in a row, you're breaking basic normalisation rules.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups