若有自增列:
select top 1 * from table1 order by id desc
若有时间列:
select top 1 * from table1 order by edate desc
若没有任何标志,没有办法!

解决方案 »

  1.   

    SELECT TOP 1 * FROM 表 
    ORDER BY 排序字段 DESC(从大到小)|ASC(从小到大)主要看你是怎么排序,那条记录是记录集的最后一条记录
      

  2.   

    select * from yourtable where id=(select max(id) from yourtable)
      

  3.   

    有没有排序字段先?   没有,不用任何ORDER BY 就行了,它默认数据库中的储存顺序
      

  4.   


    select identity(int,1,1) AS id_num,* into #temp from  yourtable
    select * from #temp where id_num=(select max(id_num) from #temp)