MysqL -p -u username database_name < file.sql
在给定的sql脚本文件中针对指定的数据库执行所有查询?
[someone@somewhere ~]$ echo "select * from soMetable;" > file.sql [someone@somewhere ~]$ sqlite3 file.db < file.sql 10/02/2012 11/01/2012 09/03/2012