CREATE TABLE `total` (
`tid` int(11) NOT NULL,
`tcode` varchar(13) NOT NULL,
`tprice` float NOT NULL,
`tpro` float NOT NULL,
`tunit` int(11) NOT NULL,
`tqty` float NOT NULL,
`tdate` date NOT NULL,
`tname` varchar(50) NOT NULL,
`tsave` varchar(50) NOT NULL,
`tupdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`tstatus` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `total2` (
`tid` int(11) NOT NULL,
`tcode` varchar(13) NOT NULL,
`tprice` float NOT NULL,
`tpro` float NOT NULL,
`tunit` int(11) NOT NULL,
`tqty` float NOT NULL,
`tdate` date NOT NULL,
`tname` varchar(50) NOT NULL,
`tsave` varchar(50) NOT NULL,
`tupdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`tstatus` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;