mysql日期和字符相互转换方法,
date_format(date,‘%Y-%m-%d‘) -------------->oracle中的to_char();
str_to_date(date,‘%Y-%m-%d‘) -------------->oracle中的to_date();
sql = "SELECT * FROM emp WHERE empno LIKE ? OR ename LIKE ? OR job LIKE ? OR date_format(hiredate,‘yyyy-mm-dd‘) LIKE ? OR sal LIKE ? OR comm LIKE ? limit ?,?" ;
原文:http://www.cnblogs.com/sdu-Jumper/p/4800799.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!