【发布时间】:2016-07-19 07:03:22
【问题描述】:
有没有办法返回这样的输出?
我的程序是空的,但是是这样的:
ALTER PROCEDURE TEST
@in_USERID
AS
BEGIN
SELECT FROM UsersGroups ug, Accounts ac, GroupsRooms gr, Posts po WHERE
ug.USER_ID = @in_USERID
OR -- and my question is here. How can I read the other users that are in the same group only knowing the id of 1 user.
END
这是我的结构:
【问题讨论】:
标签: sql-server database stored-procedures