-1

我想使用 HibernateTemplate() 对象从表中删除前“N”行。如何将其指定给 HibernateTemplate 对象?

4

1 回答 1

0
delete from table_name WHERE rowid IN
(SELECT rowid FROM table_name WHERE rownum <= &no_of_rows_to_keep);
于 2013-10-03T12:25:38.213 回答