List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:September 26 2006 7:47am
Subject:Re: Reading Writting BLOB VARBINARY Q.
View as plain text  
Warren Young wrote:
> Ankur G35 Saxena wrote:
>> Hi, I wanted to read and write a C++ structure to the DB.

One other thing: if you're not talking about objects and classes, but 
rather plain old C style structures, then it's still a bad idea.  C 
structure binary data layouts are much more stable than for C++ classes, 
but it's a bad idea for a different reason: you are effectively putting 
multiple columns' worth of data into a single column.  In DBA-speak, 
your schema isn't properly normalized.  You need to make a column for 
each field in the structure.

Then you can use SSQLS, which is made exactly for this purpose.
Thread
Reading Writting BLOB VARBINARY Q.Ankur G35 Saxena24 Sep
  • Re: Reading Writting BLOB VARBINARY Q.Bill K24 Sep
  • Re: Reading Writting BLOB VARBINARY Q.Warren Young26 Sep
    • Re: Reading Writting BLOB VARBINARY Q.Warren Young26 Sep
    • Re: Reading Writting BLOB VARBINARY Q.Bill K26 Sep