易截截图软件、单文件、免安装、纯绿色、仅160KB

帮我看一下这段sql语句 - .NET技术 / ASP.NET

string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc";
  sqlSel = sqlSel + "from image as img,album as alb where img.albumID=alb.albumID and img.albumID=" + Request["id"];
到底错在那里呢?
form 前面留个空格

string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc";
  sqlSel = sqlSel + "from image as img,album as alb where img.albumID=alb.albumID and img.albumID=" + Request["id"];
Request["id"]是什么啊
是Request.QueryString["id"]吗

SQL code:

string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc ";
sqlSel = sqlSel + " from image as img,album as alb where img.albumID=alb.albumID and img.albumID='" + Request["id"] + "'";


如果albumID是int型的,那后面的单引号就不要加,按你原来的样子就行,
但是前面我加的空格你一定要仔细看好啦!!

引用
form 前面留个空格



引用
string sqlSel = "select imageID,alb.albumID,alb.albumName,imageName,imageUrl,imageTime,imageDesc";
sqlSel = sqlSel + "from image as img,album as alb where img.alb


相关问答:

求一sql语句 - MS-SQL Server / 疑难问题

现在有两张表:文章主表A(articleId,articleTitle),文章评论表B(commentId,articleId,commentTitle)
现在我想实现这样的功能:列出文章列表,其中每篇文章标题下面列出此文章的前2个文章评论,请问sql语句怎么写啊 ......

求一SQL - MS-SQL Server / 基础类

tab1 字段:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 字段:goodsid,goodskind(商品类型)
tab3 字段:goodskind(商品类型),kindname
结果:
得到商品类型在一段时间 ......

asp.net 页面限时提交 如何实现 - .NET技术 / ASP.NET

1.asp.net做的一个答题页面,如何实时限时后自动提交,请大家给点思路
限时的时间信息存放在数据库中
2.如果答题时间设置的较长,如何方式session超时后页面无效
谢谢
用js方法来控制
回复内容太短了。。

js ......

Access通过Sql语句创建数据库 - .NET技术 / C#

在Access的查询中执行下面的语句,无效,提示期待select ,updata ,...
CreateTble C=Answer N="回帖表"
(
  C=ID T="INTEGER" P=No M=No N="编号" Z=false,
  C=Ques ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号