select  sendtime from tablename where sendtime=你的时间 group by sendtime having count(sendtime)>1

解决方案 »

  1.   

    我就是 “我的时间”不知道该怎么写?就是sendtime 就取当前时间,可是该当前时间不知该怎么写?
      

  2.   

    用 回复人: shuangyu(双宇) 语句,
    将sendtime=sysdate即可,sysdate就是你要的当前时间。
      

  3.   

    你想判断的是一天中是否有两条msg?如果是的话,那么就请转换格式,把第一张表中的时间转换为select to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss') from dual,然后在和第二张表中的数据进行比较