What do you mean by "record" ?
If by record you mean struct, you should be able to compare them using memcmp() (and sizeof(Type)).
Tables cannot be compared at a binary level, since two tables with the same data may have been stored quite differently, especially if you take into account non-inline data, like strings. So the only way to compare them is on a field by field basis. There's no automatic way to do this at the moment.
It would not be hard to do this generically using either code generation or the reflection functionality.