将SELECT * FROM TFILES where id=1 for update换成 SELECT id FROM TFILES where id=1 for update试一试msn:[email protected]
to : study_body(珍惜每一天) 结果一样而且我需要其中的每个字段,所以必须全取出来
你用其他的Sql解析器,比如Sql plus运行一下你的Sql 语句看结果如何。
to : study_body(珍惜每一天)很正常,能取到数据,前面我已经说的很清楚了你的MSN怎么不在线?
conn.setAutoCommit(false); 试试看
// This is absolutely necessary in this case and any case where you are doing // a select for update. Not doing this will result in a ORA-1002conn.setAutoCommit (false);
你用的是什么数据库啊?
在你数据库中可以运行吗????
SELECT id FROM TFILES where id=1 for update试一试msn:[email protected]
试试看
// a select for update. Not doing this will result in a ORA-1002conn.setAutoCommit (false);