|
CREATE TABLE `userGroups` (
`userId` int(11) NOT NULL default '0'
)
CREATE TABLE `workSumup` (
`userId` int(11) NOT NULL default '0',
`type` int(2) default NULL
)
select userId from userGroups where userId in (select userId from workSumup where type=1 );
因为mysql不支持子查询,上面的语句出错,该怎么变通一下呢
|
|