-1
惠那裏獲取數據。我有3個表看起來像這樣:從SQL表
create table Users
(
UserID int identity,
UserName varchar(50) not null,
UserAddress varchar(100) not null,
UserZipCode int not null,
UserTown varchar(50) not null,
UserPhone int not null,
Comments varchar(max),
primary key (UserID)
)
create table Groups
(
GroupID int identity,
GroupName varchar(50) not null,
GroupDiscription varchar(max),
primary key (GroupID)
)
create table UserGroups
(
UserID int not null,
GroupID int not null,
)
最後一個是用戶和組之間的所有環節由表。
我需要從所有用戶在選定的組中獲得用戶數據。
可以隨時幫助我嗎?
葉thx ..這就是我一直在尋找... – MrKanin 2011-02-09 16:45:52
除了你永遠不會想要使用select *;正確開始不要學習糟糕的編程技術。只選擇你需要的最小字段。 – HLGEM 2011-02-09 16:47:38