From: Warren Young Date: September 26 2006 7:47am Subject: Re: Reading Writting BLOB VARBINARY Q. List-Archive: http://lists.mysql.com/plusplus/5967 Message-Id: <4518DAF4.1080605@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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.