表的数据字典格式如下: 如果手动写MySQL建表语句,确认麻烦,还不能保证书写一定正确. 写了个Perl脚本,可快速构造MySQL脚本语句. 脚本如下: #!/usr/bin/perl use strict; my $line; while(<>){ s/\r\n//; if(/(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/){ ....'\','; }elsif(/(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+/){ ...'\','; } p…