解决java.sql.SQLException: ORA-01006: 绑定变量不存在

    rs = pstam.executeQuery("select * from dept"); pstam是一个preparedStatement,不能这么用。由于它要求要绑定变量,因此出现你说的错。 在oracle jdbc中,你得定义一个新的statement Statement stmt = conn.createStatement(); rs = stmt.executeQuery(
相关文章
相关标签/搜索