有如下sql语句
select top 5 S.*, R.Hits,SectionName from BBS_Sections S Inner Join (select top 5 SectionID,Hits from BBS_Refers order by Hits desc) R On S.SectionID = R.SectionID
我想把top 5 S.*换成这样的形式:
('BBS_ReferList.aspx?SectionId='+ CAST(SectionID as varchar(14))) as S.*但是报错!不知该怎么办?顺便问下,怎么给大家分?
select top 5 S.*, R.Hits,SectionName from BBS_Sections S Inner Join (select top 5 SectionID,Hits from BBS_Refers order by Hits desc) R On S.SectionID = R.SectionID
我想把top 5 S.*换成这样的形式:
('BBS_ReferList.aspx?SectionId='+ CAST(SectionID as varchar(14))) as S.*但是报错!不知该怎么办?顺便问下,怎么给大家分?
解决方案 »
- 四级分类如何用table输出
- 如何加载Page的PreInit事件?
- 时间问题
- 如何访问父页面控件的值?(顶者有分,明天结贴)
- 为什么我用CSDN助手登录不了,请用过的人帮我。。。
- 请教:错误提示System.UnauthorizedAccessException: 对路径“D:\inetpub\wwwroot\weblog\Entries\Entry.xml”的访问被拒绝。如何解决?
- 事务问题----比较急
- 有时运行asp.net时出现这种错误!!
- 水晶报表能不能做到所显示的字段由用户来选择?
- 微软的Microsoft Mobile Internet Toolkit和j2me有什么区别??
- 这种两次查询的SQL语句怎么写?
- asp2.0 textbox.Attributes.Add("onfocus", "this.value=function()")
设个变量 然后再赋值
给分点该页面右上角的管理 然后填写你ID的密码 就能给分了~
======>>>
('BBS_ReferList.aspx?SectionId='+ CAST(S.SectionID as varchar(14))) as XXXS.*随便换成个别的什么名
你随便AS个T_SQL不会以为有特殊意义的字符的可以啦