|
|
|
|
|
by jpalomaki
1102 days ago
|
|
Native enums can be used in queries like strings, but with type checking: select * from cust where type = ’company’ -- ok
select * from cust where type = ’c0mpany’ -- error
As mentioned, they take less space. Important if you use these columns in index and have millions of rows. |
|