sqlÓï¾ä
table±íÖÐÓÐ Ö÷¼ü(ID),°à¼¶Ãû³Æ(ClassName),¿Î³ÌÃû³Æ(CourseName)
ÈçºÎʵÏÖ"Ò»Äê¼¶Ò»°à(ClassName):ÓïÎÄ(CourseName),Êýѧ(CourseName),Ó¢Óï(CourseName)"
table±íÖÐÓÐ Ö÷¼ü(ID),°à¼¶Ãû³Æ(ClassName),¿Î³ÌÃû³Æ(CourseName)
ÓÃÊÓͼÄÜʵÏÖ"Ò»Äê¼¶Ò»°à(ClassName):ÓïÎÄ(CourseName),Êýѧ(CourseName),Ó¢Óï(CourseName)"
ÕâÊǸÉÂð°¡
SQL code:
/******************************************************************************************************************************************************
ºÏ²¢·Ö²ð±íÊý¾Ý
ÕûÀíÈË£ºÖйú·ç(Roy)
ÈÕÆÚ:2008.06.06
******************************************************************************************************************************************************/
--> --> (Roy)Éú³É測試數據
if not object_id('Tab') is null
drop table Tab
Go
Create table Tab([Col1] int,[Col2] nvarchar(1))
Insert Tab
select 1,N'a' union all
select 1,N'b' union all
select 1,N'c' union all
select 2,N'd' union all
select 2,N'e' union all
select 3,N'f'
Go
ºÏ²¢±í:
SQL2000Óú¯Êý:
go
if object_id('F_Str') is not null
drop function F_Str
go
create function F_Str(@Col1 int)
returns nvarchar(100)
as
begin
declare @S nvarchar(100)
select @S=isnull(@S+',','')+Col2 from Tab where Col1=@Col1
return @S
end
go
Sel
Ïà¹ØÎÊ´ð£º
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
Êý¾Ý¿âÒªÔõôѧ²Å²»»áÏԵóéÏó°¡£¿
Õâ¾ÍÒª¿´ÄãÊʺÏʲô·½·¨ÁË£¬Õâ¾ßÌå²»ºÃ˵µÄ.....
ÔõôÁË£¬ÄѵÀ´ó¼Ò¶¼²»»á£¬»¹ÊÇÕæµÄÌ«³éÏó´ó¼Ò²»ÖªµÀÔõô˵°¡
½áºÏÄã²Ù×÷Êý¾Ý¿âµÄÌå»áºÍÀí½â£¬Ó¦¸ÃЧ¹û»á¸üºÃ¡£·ñÔò£¬Ò ......
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001'
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......