我試圖執行以下.bat過程,例如,單詞「墨粉」:將命令行參數傳遞給類似於%語句的mysql查詢
@echo off
@echo use tax; select id,date,account,supplier,item,price from booking where ite
m like '%%1%' >tempquery.sql
"c:\\Program Files\\MySQL\\MySQL Server 5.1\\bin\\mysql.exe" <tempquery.sql
不知怎的,我不能讓LIKE「%墨粉%」參數不作爲參數傳遞正確。