logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Reading Writting BLOB VARBINARY Q.: msg#00051

Subject: Re: Reading Writting BLOB VARBINARY Q.
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.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>