导入数据库文件,选择表导入
法1:perlextract_sql.pl -t mytable -r mydumpfile > mytable.sql
法2:cat test1db.sql | sed -n '/Table structure for table .test1./,/Table structure for table .test2./p'>/tmp/xxx.sql ----打印test1与test2之间的内容
法3:awk '/Table structure for table .test1./,/...
转载
2021-04-17 13:27:40 ·
273 阅读 ·
0 评论