Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

What is the difference between the return values for these two expressions in MySQL:

date('2011-01-01')

cast('2011-01-01' AS DATE)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There is no difference between the two, you get a date field in both instances

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.