select StrName_lb=case when right(ms.dis_authors,1)=';' then left(ms.dis_authors,len(ms.dis_authors)-1) else ms.dis_authors end,
                   nGJC=ms.keywords,nEGJC=ms.ekeywords,StrTitle=ms.title,StrTitleEnglish=ms.etitle,
                   ZhongTuFLH=ms.book_class_number,ShouGaoRQ=convert(varchar(10),ms.receive_date,23),WenZhangBH=ms.article_number,WenXianBSM=ms.literature_code,
                   StrSummary=ms.Summary,StrSummaryEnglish=ms.Esummary,Doi=ms.Doi,StrSpeciality_C=sp.spec_name,ZhuanYeDM=sp.country_code,                   StrSpeciality_E=sp.spec_ename
              from manuscript ms left join specialty sp on ms.spec_id=sp.spec_id
             where manu_id=manu_in_column 
               and ms.mag_id=mag_id;
以上是我的语句,麻烦大家帮忙看看哪儿出错啦?谢谢。

解决方案 »

  1.   

    nGJC=ms.keywords->
    ms.keywords as nGJC
    其它的自行更改
      

  2.   

    我按楼上的改了。但是还有个问题。convert(varchar(20),ms.receive_date,23) as aa有误。我试了下select convert(varchar(20),ms.receive_date,23) from manuscript ms;有错误
      

  3.   

    CONVERT(ms.receive_date,date)
    or
    CONVERT(ms.receive_date,datetime)
      

  4.   

    CONVERT(ms.receive_date,char(20))