1.

To convert a string to an int, the function is _________________(a) INET_ATON()(b) INET_NTOA()(c) INET_ITOS()(d) INET_STOI()I got this question in semester exam.My enquiry is from Choosing Data Types for Efficient Queries in chapter Query Optimization of MySQL

Answer»

Correct choice is (a) INET_ATON()

The EXPLANATION: In MYSQL, the function used to convert a STRING to an integer is INET_ATON(). On the other hand, the function INET_NTOA() converts a string to the corresponding integer VALUE.



Discussion

No Comment Found

Related InterviewSolutions