Hi jebin,
Try this..
CREATE TABLE IF NOT EXISTS `StudentMarks1` (
`m_s_id` varchar(20) NOT NULL,
`m_attempt` int(1) NOT NULL,
`m_sub_id` varchar(6) NOT NULL,
`sub_th` int(3) DEFAULT NULL,
`sub_th_rem` varchar(5) DEFAULT NULL,
`sub_tw` int(3) DEFAULT NULL,
`sub_tw_rem` varchar(5) DEFAULT NULL,
`sub_pract` int(3) DEFAULT NULL,
`sub_pract_rem` varchar(5) NOT NULL,
`sub_oral` int(3) DEFAULT NULL,
`sub_oral_rem` varchar(5) NOT NULL,
`semester` int(1) NOT NULL,
`m_revalflag` varchar(1) NOT NULL DEFAULT 'N' COMMENT 'enter n by
default, enter y if student''s results are stored after reval',
Primary key(m_s_id,m_attempt,m_sub_id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
If you notice there were two syntax errors 1. a missing comma at the end of third last line 2.columu names n second last line should be with out single quotes.
Hope this helps you
regards
Shekhar