Board index » delphi » Sets in Databases

Sets in Databases

Would I be right in assuming that a BLOB field would be the best
field-type in which to store Delphi Sets?

If a BLOB field would not be the best choice, which field type would be?

Regards, John


Re:Sets in Databases

Use a LONGINT as Set types (Enumerated) are actually cast as INTEGER or
the like by the compiler.
Cast the Set to LongInt to store.
Cast to the Set Type on retrieve.

Hope it helps.

Other Threads