datos verdadero o falso
| User, date | Message |
|---|---|
|
Written by afal3d
2 years ago Category: General 14 posts since Wed, 06 Jul 11 |
hola tengo una tabla con una columna que me gustarĂa que al momento de seleccionarla me admitiera solo valores verdadero o falso( si o no ) como hago esto. |
|
Written by kalvaro
2 years ago 440 posts since Thu, 29 Nov 07 |
Translated question: can I create a boolean column that will only accept TRUE or FALSE? You cannot: MySQL does not have such feature (neither booleans nor check constraints). You can create an UNSIGNED TINYINT column and use 0 as false, 1 as true, but MySQL won't prevent you from inserting 2. (No se puede ya que MySQL no tiene ni campos booleanos ni check constraints). |
|
Please login to leave a reply, or register at first. |