I currently have a MySQL database installed with a Java client that accesses and uses the database. I need a Boolean data type in a database to determine if certain actions are allowed by different database users. What is the best boolean implementation you can use in MySQL since there is no Boolean data type?
I know that TinyInt can be used with PreparedStatement with setByte(int parameterIndex, byte x , and I also know that Bit can also be used with setBoolean(int parameterIndex, boolean x) . Which one is the best solution for a Boolean value? And if is there a better solution, what would it be?
LOD121
source share