/*
获得好友列表
*/
ALTER PROCEDURE dbo.Sp_getFriendList
@OwnerID int
AS
select
GroupID,Usernumber,Nickname,sex,age,[name],info,grade,tel,shopid,province,city,job,department,mphone,shopname,online,status,friendcheck,shopuid,underwrite,
case
when truename is null then [name] -- 当 truename 是 null 时,使用 name
when truename = '' then [name] -- 当 truename 是 '' 时,使用 name
else truename
end
as [NameMemo]
from View_FriendList
where OwnID = @OwnerID
order by friendID
FOR XML RAW
RETURN
GO
获得好友列表
*/
ALTER PROCEDURE dbo.Sp_getFriendList
@OwnerID int
AS
select
GroupID,Usernumber,Nickname,sex,age,[name],info,grade,tel,shopid,province,city,job,department,mphone,shopname,online,status,friendcheck,shopuid,underwrite,
case
when truename is null then [name] -- 当 truename 是 null 时,使用 name
when truename = '' then [name] -- 当 truename 是 '' 时,使用 name
else truename
end
as [NameMemo]
from View_FriendList
where OwnID = @OwnerID
order by friendID
FOR XML RAW
RETURN
GO