好像没什么问题啊,贴点数据出来看下

解决方案 »

  1.   

    QQ是多少 ,加我吧,,私聊哈,,我不知道怎么把 数据贴上来 我的289456509
      

  2.   


    --是有点问题!distinct 后不用括号
    create proc spGetLWordInfo
    @HostID int
    as
    select distinct VisiterID  into #CommentDetail from Comments
    where HostID=@HostID order by CID desc
    select UserTable.UserName ,UserTable.Sex ,UserTable.Age ,UserTable.CityArea ,
    UserTable.StudyLevel ,UserTable.TechnicalPost,UserTable.UserID
    from UserTable where UserID in (select #CommentDetail.VisiterID from #CommentDetail)