首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

好久没散分了,前不久运气差,散分冲冲晦气!

2012-08-03 
好久没散分了,最近运气差,散分冲冲晦气!!!西安的天气有点过分了[解决办法]传说中的沙发。[解决办法]oh.给分

好久没散分了,最近运气差,散分冲冲晦气!!!
西安的天气有点过分了

[解决办法]
传说中的沙发。
[解决办法]
oh.给分。
[解决办法]

[解决办法]
擦,手还是那么快
[解决办法]
西安,听说有一种叫馍的东西..

[解决办法]

[解决办法]
路过。
[解决办法]

[解决办法]

[解决办法]

[解决办法]
西安也是个热的城市

[解决办法]
OK,飘过路过,不能错过、、
[解决办法]
西安天气不好吗?涩郎最近在忙什么呢?
[解决办法]
有什么晦气的,讲给我们听听,让我们也高兴下。
[解决办法]

探讨
西安的天气有点过分了

[解决办法]

[解决办法]
全中国的天气都不正常
[解决办法]
接。。。
[解决办法]
SF不热?
[解决办法]

[解决办法]
charindex(' ',[CODE2]+' ',b.P2)+1 
from 
test a 
join 
T b 
on 
a.id=b.id 
where 
charindex(' ',[CODE2]+' ',b.P2)>0
)
select 
a.id,
a.CODE1,
name=substring(a.[CODE2]+' ',b.P1,b.P2 - b.P1 - 1) 
from 
test a 
join 
T b 
on 
a.id=b.id 
order by 
1
/*
id CODE1 name
--------------------------
1 AA AA
1 AA BB
1 AA CC
2 BB FF
2 BB EE
2 BB DD
*/

--> 测试数据:[A1]
if object_id('[A1]') is not null 
drop table [A1]
create table [A1](
[编码] varchar(2),
[内容] varchar(1)
)
insert [A1]
select '01','a' union all
select '02','b' union all
select '03','c' union all
select '04','d' union all
select '05','e'
--> 测试数据:[B2]
if object_id('[B2]') is not null 
drop table [B2]
create table [B2](
[id] int,
[内容] varchar(11)
)
insert [B2]
select 1,'01,05' union all
select 2,www.xu168.com'02' union all
select 3,'01,03' union all
select 4,'02,05' union all
select 5,'01,02,03' union all
select 6,'01,02,04,05' union all
select 7,'02,04'
go

with t
as(
select 
b.id,
a.内容 
from 
[B2] b
inner join 
[A1] a
on 
CHARINwww.1586f.comDEX(a.编码,b.内容)>0


)
select 
a.id,
内容=stuff((SELECT ','+内容 
from 

where 
a.id=t.id for xml path('')),1,1,''
[解决办法]
哎 我也不顺!
[解决办法]

[解决办法]
come on.分呢
[解决办法]
生活是一杯白开水,拿着烫手,喝着烫嘴
[解决办法]
热?比得过重庆嘛?
[解决办法]
jfjf
[解决办法]
路过。路过。
[解决办法]
为什么都喜欢抢沙发....
[解决办法]

[解决办法]

[解决办法]
能帮我把 t_stock.FName 加进去吗 我做的老是提示FName字段无效 不知道怎么弄
你们用到3个表


t_icitem 物料表
t_stock 仓库表
icbom bom表

-- select t_ICItem.fdefaultloc as '编号',t_stock.FName as '仓库' from t_ICItem left outer join t_stock on t_ICItem.fdefaultloc = t_stock.fitemid
[解决办法]

[解决办法]
我以为你消失了...原来你还在啊....哎 要专门给我散分才能冲晦气....
[解决办法]
每天回帖即可获得10分可用分!

热点排行
Bad Request.