有一表A现在:select * from A where id=100 and flow_id = 90 and message_id = 1909
得到3条记录。请问:
如何使用一个sql语句,更新时间最新的记录?就上表A:记录时间的字段cb_time.update a set status = 0 where id=100 and flow_id = 90 and message_id = 1909
多谢啊!
得到3条记录。请问:
如何使用一个sql语句,更新时间最新的记录?就上表A:记录时间的字段cb_time.update a set status = 0 where id=100 and flow_id = 90 and message_id = 1909
多谢啊!
解决方案 »
- oracle指定的几行做统计。 难点!!有要挑战的进!!
- 如何获取FCKeditor编辑器中已经编辑好的html源码
- 怎样用一条SQL获取同期值和前期值
- 新学,装了个Oracle 数据库 10g 快捷版,想知道怎么用VB访问
- Hibernate问题,请高人指点!
- 用system管理,将数据放到system中有何坏处??
- 关于时间的计算,如何计算时间1与时间2的差,并转换成分钟?
- update 多表关联。
- 请问大师,dbca不能创建oratab文件
- ORA-12560: TNS:协议适配器错误
- 9i,PL/SQL中本地动态SQL执行DDL语句的问题
- 谁知道 where 中的 (+) 是什么含义? 100
where id=100
and flow_id = 90
and message_id = 1909
and cb_time=
(select max(cb_time) from a where id=100 and flow_id = 90 and message_id = 1909);