INET_NTOA() function in MySQL Last Updated : 17 Dec, 2020 Comments Improve Suggest changes Like Article Like Report INET_NTOA() : This function in MySQL takes the IPv4 address in network byte order and then it returns the address as a dotted-quad string representation. This function returns NULL if the input address is an invalid IPv4 address. Syntax : INET_NTOA(expr) Parameter : This function accepts only one parameter. expr - Input IPv4 address represented in network byte order. Returns : It returns a dotted-quad string representation of the given IPv4 address. Example-1 : Checking the equivalent dotted-quad string representation for the following address “17171712” with the help of INET_NTOA Function. As it is a valid IPv4 address we will get the result in a dotted string. SELECT INET_NTOA(17171712) AS Address_In_DottedString ; Output : ADDRESS_IN_DOTTEDSTRING1.6.5.0 Example-2 : Checking the equivalent dotted-quad string representation for the following address “-121” with the help of INET_NTOA Function. As it is not a valid IPv4 address we will get NULL. SELECT INET_NTOA(-121) AS Address_In_DottedString ; Output : ADDRESS_IN_DOTTEDSTRING NULL Example -3 : Checking the equivalent dotted-quad string representation for the following decimal number “171712.01223” with the help of INET_NTOA Function. SELECT INET_NTOA (171712.01223) AS Address_In_DottedString ; Output : ADDRESS_IN_DOTTEDSTRING0.2.158.192 Example-4 : Checking the equivalent dotted-quad string representation for the following binary number “101011001” with the help of INET_NTOA Function. SELECT INET_NTOA(b'101011001') AS Address_In_DottedString ; Output : ADDRESS_IN_DOTTEDSTRING0.0.1.89 Comment More infoAdvertise with us Next Article INET_NTOA() function in MySQL jana_sayantan Follow Improve Article Tags : SQL DBMS-SQL mysql Similar Reads INET6_NTOA() function in MySQL INET6_NTOA() : This function in MySQL takes an IPv6 or IPv4 network address represented in numeric form as a binary string and it returns the string representation of the address as a string in the connection character set. It returns NULL if the address is not valid. Syntax : INET6_NTOA(expr) Param 2 min read INSERT() function in MySQL INSERT() : This function in MySQL is used for inserting a string within a string, removing a number of characters from the original string. Syntax : INSERT(str, pos, len, newstr) Parameters : This method accepts four parameter. str - Original string in which we want to insert another string. pos - T 2 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 LEFT() Function in MySQL The LEFT() function in MySQL is used to extract a specified number of characters from the left side of a given string. It uses its second argument to decide, how many characters it should return. Syntax: LEFT (str, len)Parameter: This function accepts two parameters as mentioned above and described 1 min read INET_ATON() function in MySQL INET_ATON() : This function in MySQL takes the dotted-quad representation of an IPv4 address as a string and returns the numeric value of the given IP address in form of an integer. If the input address is not a valid IPv4 address this function returns NULL. The return address is calculated by the f 2 min read LN() Function in MySQL LN() function : It is the function in MySQL is used to calculate the natural logarithm of a specific number with base e . The number must be greater than 0, otherwise it will return NULL. Syntax : LN(X) Parameter : LN() function accepts one parameter as mentioned above in the syntax and described be 2 min read LEAST() Function in MySQL The LEAST() function in MySQL is a versatile tool that returns the smallest (minimum) value from a list of expressions. It can be used with numbers, strings, or even columns of data to find the minimum value according to their data type.In this article, We will learn about LEAST() Function in MySQL 4 min read INET6_ATON() function in MySQL This function in MySQL takes a dotted representation of an IPv4 or IPv6 address and returns a binary string that represents the numeric value of the address in network byte order. If the input address is not a valid IPv4 or IPv6 address this function returns NULL. Syntax : INET6_ATON(expr) Parameter 2 min read ORD() Function in MySQL ORD() function in MySQL is used to find the code of the leftmost character in a string . If the leftmost character is not a multibyte character, it returns ASCII value. And if the leftmost character of the string str is a multibyte character, ORD returns the code for that character, calculated from 3 min read SOUNDS LIKE Function in MySQL SOUNDS LIKE : This function in MySQL is used to compare the Soundex codes of a given two string expressions. It is used as SOUNDEX(expr1) = SOUNDEX(expr2) to retrieve strings that sound similar. Syntax : expr1 SOUNDS LIKE expr2 Parameter : It accepts two parameter as mentioned above and described be 2 min read Like