1.

Reena is working with functions of MySQL. Explain her following:i. What is the purpose of now () function? ii. How many parameters does it accept? iii. What is the general format of its return type?

Answer»

i. It returns the current date and time. 

ii. None 

iii. The return type for NOW() function is either in ‘YYYYMM-DD HH:MM:SS’ format or YYYY-MM-DD HH:MM:SS. uuuuuu format, depending on whether the function is used in a string or numeric context.



Discussion

No Comment Found

Related InterviewSolutions