日期类型函数转换的特殊性
别的数据库,日期类型如果要必须得用函数转换,但是MySQL不需要,因为他会自动转换,只要书写是按照日期类型写的,不用日期函数转换。
desc select emp_no from salaries where emp_no =20247 and from_date='1985-03-01';


使用日期函数转换
desc select emp_no from salaries where emp_no =20247 and from_date=str_to_date('1985-03-01','%Y-%m-%d');

