Salut tout le monde j'ai un problème dans MySQL# 1366 - valeur entière incorrect: MYsql
ma table est
CREATE TABLE IF NOT EXISTS `contactform` (
`contact_id` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(50) NOT NULL,
`addition` varchar(50) NOT NULL,
`surname` varchar(50) NOT NULL,
`Address` varchar(200) NOT NULL,
`postalcode` varchar(20) NOT NULL,
`city` varchar(50) NOT NULL,
`phone` varchar(20) NOT NULL,
`emailaddress` varchar(30) NOT NULL,
`dob` varchar(50) NOT NULL,
`howtoknow` varchar(50) NOT NULL,
`othersource` varchar(50) NOT NULL,
`orientationsession` varchar(20) NOT NULL,
`othersession` varchar(20) NOT NULL,
`organisation` int(11) NOT NULL,
`newsletter` int(2) NOT NULL,
`iscomplete` int(11) NOT NULL,
`registrationdate` date NOT NULL,
PRIMARY KEY (`contact_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
mysql>insert into contactform values('','abhi','sir','shukla','vbxcvb','342342','asdfasd','234234234','[email protected]','1999/5/16','via vrienden of familie','','19','20','6','1','1','2010-03-29')
i get suivantes erreur. # 1366 - valeur entière incorrect: « » pour la colonne « contact_id » à la ligne 1
ce travail demande bien sur ma machine locale, mais donner une erreur sur le serveur
mais il fonctionne bien sur – rajanikant
locale il fonctionne très bien lorsque vous avez un serveur MySQL sans configuration propper. Voir le MODE SQL: http://dev.mysql.com/doc/refman/5.1/fr/server-sql-mode.html Une bonne configuration produira des erreurs si vous faites quelque chose de mal. L'insertion d'une chaîne dans un champ entier est incorrecte. –