Jump to content

Tables In Mysql


Guest papas
 Share

Recommended Posts

i would like to know what type,collation,chatacteristics,null ,e.t.c. we put for radio button and checkbox in the tables of mysql databases that we have made parallels plesk control panel. thanks

Link to comment
Share on other sites

For checkboxes I use TINYINT(1) since it can store values 0 and 1 efficiently. You can also use TINYINT for radio buttons but if the values are greater than 10 you should at least make TINYINT(2) instead of 1.You can also set the default values to 0 in the database.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...