中文字幕天天躁日日躁狠狠躁,最近中文字幕大全免费版在线,最近2019免费中文字幕视频三,亚洲精品无码你懂的,亚洲国产精品成人精品小说

您現在的位置: > 技術沙龍 > 數據庫 > SQL Server > Transact-SQL 參考 > RTRIM
  • 相關軟件
    >RTRIM 創(chuàng)建者:webmaster 更新時間:2006-02-16 15:51

    截斷所有尾隨空格后返回一個字符串。



    語法


    RTRIM ( character_expression )



    參數


    character_expression



    由字符數據組成的表達式。character_expression 可以是常量、變量,也可以是字符或二進制數據的列。



    返回類型


    varchar



    注釋


    character_expression 必須為可隱性轉換為 varchar 的數據類型。否則請使用 CAST 函數顯式轉換 character_expression。



    說明  兼容級別可能影響返回值。有關更多信息,請參見 sp_dbcmptlevel。



    示例


    下例顯示如何使用 RTRIM 刪除字符變量中的尾隨空格。



    DECLARE @string_to_trim varchar(60)
    SET @string_to_trim = 'Four spaces are after the period in this sentence.   '
    SELECT 'Here is the string without the leading spaces: ' + CHAR(13) +
      RTRIM(@string_to_trim)
    GO


    下面是結果集:



    (1 row(s) affected)
    ------------------------------------------------------------------------
    Here is the string without the leading spaces: Four spaces are after the period in this sentence.      
    (1 row(s) affected)
    相關文章
    本頁查看次數: