1. String function length and analysis
1,datalength (char_expr) Returns a string that contains the number of characters, but does not contain subsequent spaces
2,substring (expression,start,length) takes a substring, the subscript of the string is from "1", start is the start position, length is the string length, the actual application of Len (expression) to obtain its length
3,right (char_expr,int_expr) returns the int_expr character to the right of a string , with the opposite of left
4,isnull ( Check_expression , replacement_value ) if Check_expression is empty, returns the value of Replacement_value, NOT NULL, returns the Check_expression character action class
5,sp_addtype Self-defining type
For example:EXEC sp_addtype birthday, datetime, ‘NULL‘
6,set nocount {on|off}
Causes the returned results to contain no information about the number of rows affected by the Transact-SQL statement. If some of the statements contained in a stored procedure do not return much of the actual data, this setting can significantly improve performance because of the significant reduction in network traffic. Set NOCOUNT settings are set at execution or runtime, not at parse time. When SET NOCOUNT is on, no count is returned (indicating the number of rows affected by the Transact-SQL statement).
When SET NOCOUNT is OFF, the count is returned
SQL Server Basic functions