Hi,

I was wondering if anyone would find ENUM type useful.

Currently you can emulate enum type like this

ENUM_ATTR VARCHAR(64) CHECK ENUM_ATTR IN ('FOO', 'BAR', SNAFU');

This achieves the same thing. The only thing is performance optimization.

If you could say

ENUM_ATTR ENUM('FOO', 'BAR', SNAFU')

The values could be internally integers and searching them would be faster.

Comments?

- rami

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to