请求各位指点:
String sql = "select pub_time from table"; //pub_time 在表中是Timestamp类型
ResultSet rs = statement.executeQuery(sql);出现java.sql.SQLException: General error错误
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)
发现执行executeQuery时出现Source not found的提示
请问应该怎么解决?SQLTimestamp
String sql = "select pub_time from table"; //pub_time 在表中是Timestamp类型
ResultSet rs = statement.executeQuery(sql);出现java.sql.SQLException: General error错误
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)
发现执行executeQuery时出现Source not found的提示
请问应该怎么解决?SQLTimestamp
解决方案 »
- 字符的合并问题
- oracle10采用jdbc的方式获取conn,并设置conn.setAutoCommit(false),不显示执行conn.commit();结果还是提交了。
- 在AIX服务器安装oracle 11g 报错 求助!
- oracle 大表问题,高分
- 用的hibernate把sqlserver换成oracle报错!
- 问个简单的查询
- 望用过plsql develop的高手能指点一二
- 急啊,救命啊,大侠们,job的问题,高手指点迷津!
- 请问,没有网卡能不能装完整的oracle9i ,就是全部安装。
- 能不能利用存储过程输出记录?如何输出?
- 请教异常原因error:ORA-06550
- 关于oracle的可视化问题
数据库里用“select pub_time from table”?