String sql = "select * from (select rownum rid,newsid,title,content,createdate from news) ttt where ttt.rid<="
+ pagesize
+ "*"
+ page
+ " and ttt.rid>"
+ pagesize
+ "*("
+ page + "-1);";
System.out.println(sql);
String sql2="select * from news";

try {
Connection conn = new DBConnection().getConnection();
Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery(sql);
while (rs.next()) {
当我这样执行,输入参数,就是不能执行,报如下错误:
select * from (select rownum rid,newsid,title,content,createdate from news) ttt where ttt.rid<=5*1 and ttt.rid>5*(1-1);
java.sql.SQLException: ORA-00911: 无效字符
而我在PLSQL里面确实可以执行的
哪位帮我个忙啊