from my laptop

This commit is contained in:
kevin 2017-05-10 23:52:46 +08:00
parent 63b3f9f017
commit 367ea013d9
1 changed files with 9 additions and 2 deletions

View File

@ -13,9 +13,16 @@ public class QueryRecordTest {
public static void main(String[] args) throws SQLException {
String tableName = "book";
String bookName = "";
Scanner scanner = new Scanner(System.in);
String bookName = scanner.nextLine();
String input = scanner.nextLine();
String[] queryInfo = input.split(" ");
if(queryInfo.length != 1)
{
logger.error("参数输入错误");
return
}
bookName = queryInfo[0];
QueryRecord queryRecord = new QueryRecord();
String sqlFile=System.getProperty("user.dir")+File.separator+"challenge4.sql";
SQLExec sqlExec = new SQLExec();