
04/04/2008, 22:27
|
 | | | Fecha de Ingreso: noviembre-2007 Ubicación: Mexico Df
Mensajes: 742
Antigüedad: 17 años, 2 meses Puntos: 69 | |
Re: Usar SET o ENUM, Que tan viable es???... Mm yo también pensaba utilizar ete tipo de dato, solo que en realidad no se como insertar las opciones. pOR EJEMPLO:
CREATE TABLE Bike
(
ID SMALLINT UNSIGNED,
Model VARCHAR(40),
Color ENUM('1', '2', '3', '4'),
Options SET('rack', 'light', 'helmet', 'lock')
);
SI QUISIERA INSERTAR 'RACK Y 'LIGHT' COMO OPCIONES como sería el query? o me conviene mejor manejarlo por numeros y relacionarlas a otra tabla que contenga su id y su respectiva opción.?? |