一、sqlite3相关命令
1.1 sqlite3加载sql文件
sqlite> .read xx.sql
1.2 sqlite3查看所有表
sqlite> .tables
1.3 sqlite3查看表结构
sqlite> .schema 表名
注意:因为平时写sql时都会在语句后写分号;,而sqlite的以点开头的命令都不需要分号,否则执行失败
二、MySQL相关命令
2.1 MySQL加载sql文件
mysql> source xxx.sql
2.2 MySQL查看所有表
mysql> show tables;
2.3 MySQL查看表结构
mysql> show create table 表名;