StrSQL = "select A.ID from Club_Basic_Info A left join Club_Item_Info B on A.Club_ID=B.Club_ID"
这句sql 在sqlserver2005 运行能显示记录 但放到asp代码中运行 却没有记录 这是什么原因
现象描述清楚了 能把局部的asp代码贴一下吗 要不然没法找到问题
StrSQL = "select A.I ......
传递参数:
站点名称、站点简称、站点全拼,都是以‘-’分割连接,如:
新区分公司-工业园二号门-生活中心-行创四路-行创三路-工业园一号门,
xqfgs-gyyehm-shzx-xcsl-xcsl-gyyyhm,
xinqufengongsi-gongyeyuanerhaomen-shenghuozhongxin-xingchuangsilu-xingchuangsanlu-gongyeyuanyihaomen
要求: ......
我的表中有这么个字段,格式为:A@@B@@C
我的要求将这个字段的值变为多条,即:1.A
2.B
&n ......
SQL code:
select * from table1 where column1 NOT IN (SELECT column1 from table2)
请问这样的语句有没有更好的写法
Up!
SQL code:
select * from table1 t where NOT exists (SELECT 1 from table2 where column1=t.column1)
引用
SQL codeselect*from table1 twhereNOTexists (SELECT1from ......
根据一列的数字生成字母递增,
如某列为
2
1
3
4
2
5
要查询结果为
A列 B列
2 a,b
1 a
3 a,b,c
4 a,b,c,d
2 a,b
5 a,b,c,d,e
谢谢
数字会超过26吗?....如何
关注!
不会超过 ......
原来发过一贴
http://topic.csdn.net/u/20100112/16/e13f3771-89a5-4148-b3ad-e97baa87d852.html
首先感谢原来发帖回复的各位
现在由于速度要求,整理一下,再发一贴求助..
表A
aid, acontent
1, abc
2, bcd
3, efg
4, fgh
表B
bid,aid,btype, bcontent, ......