select convert(nvarchar(50), N'中国') 

解决方案 »

  1.   

    select convert(nvarchar(50), N'中国') 
      

  2.   

    select convert(nvarchar(50), N'中国') 
      

  3.   

    我是存储过程,调用如下:
    Exec ImportFrightToCusoms '234','1','46021020', 440, 10,.1408,4,'中国'存储过程如下:
    CREATE PROCEDURE Dbo.ImportFrightToCusoms
    @StrOrderNo Varchar(25),
    @SerialID AS Int,
    @StrMaterialNo varchar(25),
    @Qty numeric(18,8),
    @PieceQty numeric(18,8),
    @NetWeight numeric(18,8),
    @ApplyNo varchar(25),
    @StrCountry nvarchar(50)
     AS
    SET NOCOUNT ON 
    UPDATE AImportCustoms
    SET ApplyQty=isnull(ApplyQty,0)+isnull(@ApplyQty,0),PieceQty=isnull(PieceQty,0)+isnull(@PieceQty,0),NetWeight=isnull(NetWeight,0)+isnull(@Weight,0)  
    WHERE (OrderNo=@StrOrderNo) and (ApplyNo =@ApplyNo) and (  Country = @StrCountry )   
      

  4.   


    Exec ImportFrightToCusoms '234','1','46021020', 440, 10,.1408,4,N'中国' 
      

  5.   

    说明:我的AImportCustoms表中Country是nvarchar(50)的
      

  6.   

    Exec ImportFrightToCusoms '234','1','46021020', 440, 10,.1408,4,N'中国'