SELECT * FROM TMemberCard WHERE FCompId = 4758348102062400779 SELECT * FROM TConsumeBill WHERE FCardId IN(SELECT FCardId FROM TMemberCard WHERE FCompId != 4758348102062400779) AND FCompId = 4758348102062400779 SELECT * FROM TMember WHERE FMemNo = '34214' UPDATE TMember Set FState = 4 ,FMemo = '[民主路店,已经停用]' WHERE FName LIke '%民主%' UPDATE TCompany SET FNo = FNo + '[停用]' WHERE FNo = '006' SELECT * FROM TMemberCard WHERE FCompId = 4758348102062400779 UPDATE TMemberCard SET FState = 4,FMemo = '[民主路店,已经停用]' +FMemo + '' WHERE FMemId IN(SELECT FMemID FROM TMember WHERE FName LIke '%民主%') AND FState = 4 SELECT * FROM TMember WHERE FName LIke '%民主%' AND FState = 4 SELECT * FROM TCompany WHERE FId = 4758348102062400779 SELECT * FROM TCompany select count(1) from TMember WHERE FMemId IN(SELECT FMemId FROM TMemberCourse WHERE FCompId = 4758348102062400779) OR FMemId IN(SELECT FMemId FROM TMemberCard WHERE FCompId = 4758348102062400779)