2014-07-17 28 views
0
echo select location, AVG(age) as average from location where location='%name%' >test.sql 

當我dwant寫一個簡單的SQL腳本文件,我得到錯誤「AS在這個時候意外」,所以當我刪除的,我得到「FROM是意外的這次」。它的工作原理,當我用雙引號包圍的語句,但我並不想這樣做,寫作HQL文件

回答

1

嘗試逃離()

echo selecet location, AVG^(age^) as average from location where location='%name%' >test.sql