- 论坛徽章:
- 0
|
Hi,dx
我现在遇到一个如何提取表定义语句的问题,希望能得到你们的帮助。谢谢!
问题如下图片,顺附文件内容:
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `cldv_errors` (
`insert_datetime` datetime NOT NULL,
`sn` char(1 NOT NULL,
PRIMARY KEY (`sn`,`test_time`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `drv_disk`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `drv_disk` (
`insert_datetime` datetime NOT NULL,
`testertype` char(3) default NULL,
`testerid` char(13) default NULL,
`sw_rev` char(10) default NULL,
`diskclamptray_label` char(16) default NULL,
PRIMARY KEY (`hda_sn`,`assembled_date`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `drv_haa`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `drv_haa` (
`insert_datetime` datetime NOT NULL,
`hda_sn` char( NOT NULL default '',
`assembled_date` datetime NOT NULL default '0000-00-00 00:00:00',
`production` char(1) default NULL,
`model_code` char( default NULL,
PRIMARY KEY (`hda_sn`,`assembled_date`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
--
-- Dumping data for table `drv_haa`
-- |
|