my query:
I have a date field in MySQL that is dated, and at the time of inserting it into the table, it does not accept this format: 'dd / MM / yyyy', because I believe that mysql accepts another type of format.
CREATE TABLE tb_peliculas
(codpeli char(5) primary key not null,
nompeli varchar(50) not null,
genero varchar(40),
fechaestreno date,
duracion varchar(40),
idioma varchar(20),
idsubtitulo int,
idcalidad int,
precio double);
INSERT INTO TB_PELICULAS VALUES('P0001', 'X-men: Apocalipsis', 'Ciencia Ficción, Acción', '19/05/2016', '2 horas y 10 minutos','Inglés y Español Latino',1,1,50.0);
When I insert the above, I get this error:
Incorrect date value: '19/05/2016' for column 'fechaestreno' at row 10.000 sec
How can I accept the format: dd / MM / yyyy?