删除数据库中多少条记录

delete from AJB_SHOPPINGCAR
where rowid in (select rowid from AJB_SHOPPINGCAR where user_id='1000000013' and shopcar_type=2 and rownum<=2)

这样删除2条

猜你喜欢

转载自sxc-1314.iteye.com/blog/1942015