在 MsSql中
select ID,identity(int,1,1) as order_id,Name,Total into #temp form table order by total desc
select * from #temp
select ID,identity(int,1,1) as order_id,Name,Total into #temp form table order by total desc
select * from #temp
解决方案 »
- 关于qq输入框写字的问题?
- 开发三层网络系统(或者改造原来的两层为三层)最简易,最快速的的办法,会两层就可以开发三层。
- 求助:最近想用fastreport做报表,可一直做不好,哪位兄弟给提供一些电子版教程,谢谢
- 请教个dbgridEh的问题,某一字段设置为checkbox类型,如何设置它为选中或者没有选中呢?
- 作报表汇总里遇到的奇怪问题,请高手指点
- 怎样判断SQL数据库有没有该用户和密码?
- 一个关于DBCombobox的问题,很简单的!
- 请问delphi 里面那个控件可以控制每一行字符的颜色
- 求在双核1.6G和512M机器上,0.5秒以内生成并能显示所有4782969注的明细单
- 系统编程: 怎样在IE浏览器的快捷菜单上添加我的程序快捷方式。并能。。。
- 这个参数怎么定?帮助上没有说了。
- 有窗口尺寸转换的简单方法?
select identity(int,1,1) as Id,Name,Total into #temp form table order by total desc
select * from #temp
Query1Field1.Value:=Query1.RecNo;
我现在的table中没有ID字段。TO: forgot2000(忘记2000年)
select identity(int,1,1) as Id,Name,Total into #temp form table order by total desc
能解释一下,这两个语句吗?