SQL – SQL Server CHAR() Function
The SQL Server CHAR() function returns the character based on the ASCII code specified.
The SQL Server CHAR() function returns the character based on the ASCII code specified.
The SQL Server CHARINDEX() function searches for a substring in a string, and returns the position. If the substring is not found, this function returns 0.
The SQL Server COALESCE() function returns the first non-null value in a list.
The SQL Server CONCAT() function adds two or more strings together.
The SQL Server + operator allows you to add two or more strings together.
The SQL Server CONVERT() function converts a value of any type into a specified datatype.
The SQL Server CONCAT_WS() function adds two or more strings together with a separator.
The SQL Server COUNT() function returns the number of records returned by a select query. NULL values are not counted.
The SQL Server CURRENT_TIMESTAMP() function returns the current date and time as “YYYY-MM-DD HH-MM-SS”.
The SQL Server CURRENT_USER function returns the name of the current user in the SQL Server database.
The SQL Server DATALENGTH() function returns the number of bytes used to represent an expression.
The SQL Server DATEADD() function adds a time/date interval to a date and then returns the date.
The SQL Server DATEDIFF() function returns the difference between two dates.
The SQL Server DATEFROMPARTS() function returns a date from the specified parts (year, month, and day values).
The SQL Server DATENAME() function returns a specified part of a date as a string value.
The SQL Server DATEPART() function returns a specified part of a date as an integer value.
The SQL Server DAY() function returns the day of the month (from 1 to 31) for a specified date.
The SQL Server DEGREES() function converts a value in radians to degrees.