gersang.g5_attendance에서 sql 클릭해서
SELECT * FROM `gersang.g5_attendance` WHERE 1
위에 부분 지우고 아래 와 같이 했는데
CREATE TABLE g5_attendance (
id int(11) NOT NULL auto_increment,
mb_id varchar(50) NOT NULL default '',
subject varchar(255) NOT NULL default '',
rank varchar(2) NOT NULL default '',
day int(11) NOT NULL default '0',
sumday int(11) NOT NULL default '0',
reset int(11) NOT NULL default '0',
reset2 int(11) NOT NULL default '0',
reset3 int(11) NOT NULL default '0',
point int(11) NOT NULL default '0',
datetime datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (id),
KEY id (mb_id,day,datetime)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE g5_attendance_setup (
`att_start_time` varchar(8) NOT NULL,
`att_end_time` varchar(8) NOT NULL,
`att_day_point` int(3) NOT NULL,
`att_week_point` int(4) NOT NULL,
`att_month_point` int(4) NOT NULL,
`att_year_point` int(4) NOT NULL,
`att_first_point` int(4) NOT NULL,
`att_second_point` int(4) NOT NULL,
`att_third_point` int(4) NOT NULL,
`att_check_day` int(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-------------------------------------------------------------------
SQL 질의:
CREATE TABLE g5_attendance (
id int(11) NOT NULL auto_increment,
mb_id varchar(50) NOT NULL default '',
subject varchar(255) NOT NULL default '',
rank varchar(2) NOT NULL default '',
day int(11) NOT NULL default '0',
sumday int(11) NOT NULL default '0',
reset int(11) NOT NULL default '0',
reset2 int(11) NOT NULL default '0',
reset3 int(11) NOT NULL default '0',
point int(11) NOT NULL default '0',
datetime datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (id),
KEY id (mb_id,day,datetime)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
MySQL 메시지: 문서
#1067 - 'datetime'의 유효하지 못한 디폴트 값을 사용하셨습니다.