unexpected token: of near line 1, column 35 [from com.hou.actionForm.OrderForm of where of.initalAmount=:2 order by of.dineTime desc]
Exception in thread "main" java.lang.NullPointerException
at com.hou.test.Test.main(Test.java:38)
Exception in thread "main" java.lang.NullPointerException
at com.hou.test.Test.main(Test.java:38)
from com.hou.actionForm.OrderForm of where of.initalAmount=:2 order by of.dineTime desc
恕我孤陋寡闻, :2 有这种写法吗?
这句话改用SQL语句执行会有问题么?
Test.java第38行是写得什么代码,看看呀