RIGHT (T-SQL)

Returns the part of a character string starting a specified number of integer_expression characters from the right.
Syntax
RIGHT ( character_expression , integer_expression )
Arguments
character_expression
Is an expression of character data. character_expression can be a constant, variable, or column of either character or binary data.
integer_expression
Is the starting position, expressed as a positive whole number. If integer_expression is negative, an error is returned.
Return Types
varchar
character_expression must be of a data type that is implicitly convertible to varchar. Otherwise, use CAST to explicitly convert character_expression.

你可能感兴趣的:(数据库,职场,right,t-sql,休闲)