首页 > 数据库技术 > 详细

oracle 根据更新时间排序

时间:2015-09-23 19:18:30      阅读:771      评论:0      收藏:0      [点我收藏+]

1.插入
insert into t_user t (t.user_id,t.user_name,t.create_time,t.update_time)values(‘10‘,‘11‘,sysdate,sysdate);
2.更新
update T_USER t set t.update_time = sysdate where t.user_id=‘7‘
update T_USER t set t.update_time = sysdate where t.user_id=‘9‘
3.排序
select t.*, t.rowid from T_USER t order by t.update_time desc

oracle 根据更新时间排序

原文:http://www.cnblogs.com/sloveling/p/4832875.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!