大哥们帮帮忙,一个查询的问题 SQL中没有可以得到对记录集顺序值的属性,如果你要,那你就必须在记录集加一个字段标记序号. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select identity(int 1,1) as id1,* into #t from yourtable select id1 from #t where col='kobe' select T.id1 from aa,(select count(*) as id1 from yourtable) as T where yourtable.col='kobe' select identity(int 1,1) as F1,* into #temp from yourtable select F1 from #temp where [字段名]='kobe' 多谢苦行僧和大江东去,不过最后应该加上drop table tablename。 如何使用脚本列出数据库存储过程? numeric(10, 0)和Numeric(10)有区别吗? 无法新建数据库 char与nchar的疑惑? SQLServer 2000 中如何用sql语句查询某一段数据? 请教SQL查询 备份功能有点问题,求救!! php中关于sql数据库数据的问题 灭顶之灾!!!高手快来救我! IBM的DB2提供这样的功能…………MS-SQL里有吗?嘿嘿—— 如何些两个数据关联的sql? 高手来帮忙
select id1 from #t where col='kobe'
select F1 from #temp where [字段名]='kobe'