2014-07-17 26 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