MySQL Forums
Forum List  »  Spanish

HELP #1067 - Invalid default value for 'Creacion'
Posted by: Facundo Martin Salgado
Date: January 17, 2019 05:08PM

me da el siguiente error:

#1067 - Invalid default value for 'Creacion'

este es el codigo:


CREATE TABLE `tickets_dm` (
`ID` int(11) NOT NULL COMMENT 'Es la ID que se muestra en el Ticket',
`Usuario` int(11) DEFAULT NULL,
`Tema` int(10) NOT NULL DEFAULT 0,
`Asunto` text DEFAULT NULL COMMENT 'Asunto, sin defecto',
`Estado` int(11) DEFAULT 1 COMMENT 'Estado, por defecto: "Abierto"',
`Creacion` date NOT NULL DEFAULT current_timestamp() COMMENT 'Creacion del Ticket',
`Fecha` varchar(100) NOT NULL DEFAULT current_timestamp(),
`Contenido` text NOT NULL DEFAULT 'Sin contenido' COMMENT 'Contenido del ticket',
`Prioridad` int(11) NOT NULL DEFAULT 1 COMMENT 'Prioridad, por defecto baja'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Options: ReplyQuote


Subject
Views
Written By
Posted
HELP #1067 - Invalid default value for 'Creacion'
3579
January 17, 2019 05:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.