sql="insert into SpecialList(Special,Singer,SongCount) (select Special,Singer,Count(Singer) as SongCount from SongList group by Singer,Special) as b where SpecialList.Special<>b.Special and SpecialList.Singer<>b.Singer"
...全文
804打赏收藏
请问这条sql语句错在哪?
sql="insert into SpecialList(Special,Singer,SongCount) (select Special,Singer,Count(Singer) as SongCount from SongList group by Singer,Special) as b where SpecialList.Specialb.Special and SpecialList.Singerb.Singer"
insert into SpecialList(Special,Singer,SongCount)
select * from
(select Special,Singer,Count(Singer) as SongCount from SongList group by Singer,Special) as b where SpecialList.Special<>b.Special and SpecialList.Singer<>b.Singer