摘要:
批量更新是指在一个事务中更新大批量数据,批量删除是指在一个事务中删除大批量数据。以下程序直接通过Hibernate API批量更新CUSTOMERS表中年龄大于零的所有记录的AGE字段: ?? 代码内容??tx = session.beginTransaction(); ??Iterator customers=session.find("from Customer c where c.age>... 阅读全文
posted @ 2006-07-12 18:00
封封
阅读(538)
评论(0)
推荐(0)

浙公网安备 33010602011771号