MySQL SIGN() FunctionThe sign() is a Math function of MySQL. This function is used to get a sign of the given number. If the number is less than 0, this function returns -1. If the number is 0 or 1 or greater than 0, this function returns 0. SyntaxParameter:number: It is the number for getting a sign. Returns:This function returns the sign of the argument. Example 1Output: Example 2Output: Example 3Output:
Next TopicMySQL Math
|