UNHEX() Function in MySQL Last Updated : 24 Sep, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report UNHEX() function in MySQL is used to convert the Hexadecimal number into the bytes represented by the Number. The value returned by it is a binary string. Syntax : UNHEX(str) Parameter : Required. str : It is a string which is to be converted into the byte represented by the number. Returns : It returns a binary string. If non-hexadecimal digits are provided this function returns NULL. Example-1 : Using UNHEX() function to a string. SELECT UNHEX('6765656B73666F726765656B73') AS String_Name; Output : String_Name geeksforgeeks Example-2 : Using UNHEX() function to another string. SELECT UNHEX('48656C6C6F') AS String_Name; Output : String_Name Hello Example-3 : Using UNHEX() function to a non-hexadecimal string. SELECT UNHEX('www') AS String_Name; Output : String_Name NULL Comment More infoAdvertise with us Next Article UNHEX() Function in MySQL J jana_sayantan Follow Improve Article Tags : SQL DBMS-SQL mysql Similar Reads SOUNDEX() Function in MySQL SOUNDEX() function in MySQL is used to return a phonetic representation of a string. The phonetic represents the way the string will sound. The SOUNDEX function helps to compare words that are spelled differently, but sound alike in English. Syntax : SOUNDEX(str) Parameter : SOUNDEX() function accep 3 min read ROUND() Function in MySQL The ROUND() function in MySQL is used to round a number to a specified number of decimal places. If no specified number of decimal places is provided for round-off, it rounds off the number to the nearest integer. Syntax ROUND(X, D) Parameter Explanation This method accepts two parameters in the syn 2 min read SUM() Function in MySQL The SUM() function in MySQL is a powerful aggregate function used to calculate the total sum of values in a numeric column. By summing up the values in the specified column, this function helps in generating overall totals and performing calculations that provide meaningful insights from our data. I 4 min read TAN() Function in MySQL TAN() function : This function in MySQL is used to return the tangent of a specified number. In any right triangle, the tangent of an angle is the length of the opposite side divided by the length of the adjacent side. Similarly, this can also be defined as tangent of x is the sine of x divided by t 1 min read TRUNCATE() Function in MySQL The TRUNCATE() function in MySQL is a valuable tool for manipulating numerical values by removing their decimal parts without rounding. It allows us to limit the precision of numbers to a specified number of decimal places or even truncate them to the nearest integer. In this article, We will learn 6 min read Like