ASP中select问题
在ASP编程中:strsql="selectcardnamefromcardinfowhereusernamelike'"+username+"'andcardtypel...
在ASP编程中:
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
不能输出结果
但我试过:
strsql=" select cardname from cardinfo where username like '"+username+"' "
是能输出结果的
请问
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
是哪里写错了吗?要怎样改呢?谢谢!
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
这个查询是有结果的!
============================================
这样改就行了!
username=iris
cardtype=bankcard
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+cardtype+"' "
============================================ 展开
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
不能输出结果
但我试过:
strsql=" select cardname from cardinfo where username like '"+username+"' "
是能输出结果的
请问
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
是哪里写错了吗?要怎样改呢?谢谢!
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
这个查询是有结果的!
============================================
这样改就行了!
username=iris
cardtype=bankcard
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+cardtype+"' "
============================================ 展开
2个回答
展开全部
怎么又问一遍?
请问
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
不能输出结果
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
这个查询是有结果的!
到底是有结果还是没有结果?
请问
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
不能输出结果
strsql=" select cardname from cardinfo where username like '"+username+"' and cardtype like '"+bankcard+"' "
这个查询是有结果的!
到底是有结果还是没有结果?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询