Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

saving to a database.

 
Naf Rash
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a quick question. I have some data in the form {some numbers separated by commas} which are saved to a text file. I can do this and it is working but what I wanted to know is whether it is possible to save the {numbers} into a database so that each field contains a {...}. If so how can I do this and do you have any egs. Any help will be greatly appreciated. Thanks.
 
Loren Rosen
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can certainly save this data as strings in a database. On the database side they would be CHARs or VARCHARs. This would gain you the ability to do atomic updates, and possibly make it easier to retrieve a particular string.
But usually with databases it's better not to store strings with internal structure which the application will decode. It's better instead to get the database structure to reflect the actual structure of your data. So what are you trying to accomplish with your data?
 
Naf Rash
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want it to display/store the sets of numbers that I produce.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic