由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - a question for JDBC
相关主题
用Servlet显示数据库里的数据,分页的? (很实际的问题)Desperate help neede: DB2 connection in JSP Through JDBC driver
请教一个sql server的问题Db2 里设置通信时TCP/IP的端口和远端用JDBC问题
Re: [转载] JDBC用完了oracle的large pool (memorOracle之JDBC问题
Help:java call oralce stored procedureDB2 identity column question
[转载] Whcich DB Software to Install?oracle: cartesian product warning
Question about Oracle Driver搞database的有必要知道java吗? java被oracle买了,2个是不是很紧密?
how to get the result in the middle of resultset?谁设置干过IBM ODBC to iSeries 400 上的DB2?
[转载] Java/JSP/Servlets... and Database(Oracle/DB2)请教SQL
相关话题的讨论汇总
话题: jdbc话题: rows话题: expression话题: update话题: updated
进入Database版参与讨论
1 (共1页)
x*****n
发帖数: 98
1
problem: When I update some rows, how can I get the rows that have just been
updated, genericly?
Solution: 1.I've meant to use the JDBC 2.0's new feasures: updatable Resultset.
Unfortunatly the underlying JDBC DB2 driver didn't support it. Then I have to
write a parser to analyze the value expression. That's use select to get the
rows that will be updated. Then compute the new values according the expression
and update the corresponding columns.
The original purpose of it is: build a layer above
j***w
发帖数: 1
2
I am not familiar with DB2. But the easiest ways I could think are
1. using rollback a transaction to undo update(s)
2. using triggers to store updated values and old values
actually, I have no idea why you need to redo update(s).

Resultset.
to
expression
any
value
the

【在 x*****n 的大作中提到】
: problem: When I update some rows, how can I get the rows that have just been
: updated, genericly?
: Solution: 1.I've meant to use the JDBC 2.0's new feasures: updatable Resultset.
: Unfortunatly the underlying JDBC DB2 driver didn't support it. Then I have to
: write a parser to analyze the value expression. That's use select to get the
: rows that will be updated. Then compute the new values according the expression
: and update the corresponding columns.
: The original purpose of it is: build a layer above

1 (共1页)
进入Database版参与讨论
相关主题
请教SQL[转载] Whcich DB Software to Install?
急问一个奇怪的sql server数据库问题Question about Oracle Driver
question: copy first N rows from table B to table A (DB2)how to get the result in the middle of resultset?
SQL Server Express 里面有 Database/Server Audit Specification 吗?[转载] Java/JSP/Servlets... and Database(Oracle/DB2)
用Servlet显示数据库里的数据,分页的? (很实际的问题)Desperate help neede: DB2 connection in JSP Through JDBC driver
请教一个sql server的问题Db2 里设置通信时TCP/IP的端口和远端用JDBC问题
Re: [转载] JDBC用完了oracle的large pool (memorOracle之JDBC问题
Help:java call oralce stored procedureDB2 identity column question
相关话题的讨论汇总
话题: jdbc话题: rows话题: expression话题: update话题: updated