首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

java.sql.SQLException: ORA-00933: SQL command not properly ended,该怎么解决

2012-01-20 
java.sql.SQLException: ORA-00933: SQL command not properly endedjava.sql.SQLException: ORA-00933: S

java.sql.SQLException: ORA-00933: SQL command not properly ended
java.sql.SQLException: ORA-00933: SQL command not properly ended,又没有遇到过,程序以前是正确的,后来我改了sql语句,sql单独运行也是正确的,但是放在java里就不行了。
sql:
sql = "select ORI_URL, count(*) as counter, count(*)/"+total+" as ratio "+
  "from KFWEB_VISIT"+
  "where ORI_URL not like '%192.168.0.200%' and ORI_URL not like '%192.168.0.100%' "+
  " group by ORI_URL"+
  " order by counter desc";

[解决办法]
还是sql语句的问题,建议你好好检查一下

热点排行