数据库设计 新闻标题(title) 添加时间(time) 新闻内容(text) 编号(id 自动编号),在台显示的时候只想显示最新更新的5条新闻记录,求教好的方法,数据库是access

解决方案 »

  1.   

    selelct id, title, time, text form news order by id desc
      

  2.   

    selelct top 5 id, title, time, text form news order by id desc
      

  3.   

    加个修改时间的字段如[moditime]---------datetime-----------默认值为Now()修改了的话同时更新这个字段然后selelct top 5 id, title, time, text form news order by moditime desc
      

  4.   

    添加时间(time) 设置为默认的getdate();取的时候selelct id, title, time, text form news order by time desc
      

  5.   


    不错  根据修改的时间(使用now)来排序