怎样写sql语句查询表中最后一条纪录,#急#~~~~ select id= identity(int,1,1),* into #hhh from pub_codeselect * from #hhh order by id descdrop table #hhh 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果有IDSELECT MAX(ID)FROM TABLE如果有时间记录dateselect max(date) from table 有idselect top 1 * from table1 order by id desc无id,临时表:select id=identity(int,1,1),* into temp from table1select top 1 * from temp order by id descdrop table temp select top 1 * from table order by id desc leeboyan(宝宝) ( )临时表命名是不是还有什么规矩呢,我取aa的时刻就不对了 ! select top 1 * from table order by id desc sorry我刚才建立了一个视图的名字就aa嘻嘻非常抱歉 请高手帮忙 SQL存储过程前面后面的几句代码是什么意思,为什么要加这段。 求一条SQL ,将多行合并成一列,中间用符号隔开???? sql语法基本问题 BULK 批量导入数据,是否有文件大小限制? sql错误,求简单变通的方法 创建DELETE触发器。怎么做? DataList绑定数据问题 SQL2000的NT用户无法登陆 在线等待,请问如何为以有数据的字段加check约束(用sql语句实现) 简单问题!dateformat的问题 各位大虾,在线急等啊!!!SQL Server 7.0问题!!!
SELECT MAX(ID)FROM TABLE
如果有时间记录date
select max(date) from table
select top 1 * from table1 order by id desc
无id,临时表:
select id=identity(int,1,1),* into temp from table1
select top 1 * from temp order by id desc
drop table temp
临时表命名是不是还有什么规矩呢,
我取aa的时刻就不对了 !
我刚才建立了一个视图的名字就aa嘻嘻
非常抱歉