我在 servlet 中将查询编写为......
"select Order_No from " + yard + "where Id= '" + idd + "'";
其中yard是表名的变量,idd是Id的变量,但我仍然收到错误,所以请告诉我我的错误并为我编写正确的查询示例...
最佳答案
表名后不能有空格
"select Order_No from " + yard + " where Id= '" + idd + "'";
关于java.sql.SQLException : ORA-00933: SQL command not properly ended in selecty statement,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16706604/