i tested your CREATE TABLE statement and it created the table successfully
i added three rows:
Code:
INSERT
INTO reg_att
VALUES
( 12345, 'empl#1', '2012-04-04 09:37', '2012-04-04 21:55', '12:18', '12:00', '00:18', '00:00' )
,( 56789, 'empl#2', '0000-00-00 00:00', '2012-04-04 21:55', '12:18', '12:00', '00:18', '00:00' )
,( 33333, 'empl#3', '2012-04-04 09:37', '0000-00-00 00:00', '12:18', '12:00', '00:18', '00:00' )
;
then i retrieved them:
Code:
SELECT *
FROM reg_att;
everything is as expected
therefore, you must be doing something else
because there is no problem inserting a value of '0000-00-00 00:00' into either the LOGIN or LOGOUT column
Bookmarks