1.

To convert an int to string, the function is _________________(a) INET_ATON()(b) INET_NTOA()(c) INET_ITOS()(d) INET_STOI()The question was posed to me by my school teacher while I was bunking the class.This intriguing question comes from Choosing Data Types for Efficient Queries in section Query Optimization of MySQL

Answer» CORRECT answer is (b) INET_NTOA()

The best I can EXPLAIN: In MySQL, the function USED to CONVERT an integer to a string is INET_NTOA(). On the other hand, the function INET_ATON() converts a string to the corresponding integer value.


Discussion

No Comment Found

Related InterviewSolutions