不知这样行不行:(例)
select myid=identity(int,1,1),* into #tmp from gdk
select * from #tmp order by myid desc
select myid=identity(int,1,1),* into #tmp from gdk
select * from #tmp order by myid desc
解决方案 »
- 为SQL Server构造灵活可靠的安全门
- 求一SQL语句,关于Update的
- 用ASP连接SQL SERVER2000这个问题我用200分,但没人帮我解决了。估计值500分!!
- SQL SERVER 2005安装程序 SSL证书检索失败
- 我的结果得到出来的数目太多了!
- 本机sql2008的数据,如何导入到服务上sql2005的数据库
- SQL datetime时间格式
- 多次导入相同的表到一个表,是否应该使用TimeStamp区分?
- 解释SQL的语法的C源程序
- SQL Server7.0 with VB6.0 on client
- 过年了,还是有一个简单问题好象用SQL语句写不出来,大家帮忙看看?
- 生成SQLSERVER脚本----今天发现一个新工具(共亨)
select * from table order by desc
删除加的一列
select top 1 * from #cc order by id desc
drop table #cc 如果表中有id就执行
select top 1 * from tablename order by id desc