Home >Database >Mysql Tutorial >date-mysql插入语句怎么插入日期用什么函数?

date-mysql插入语句怎么插入日期用什么函数?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:35:191077browse

mysqldate

sql="insert into emp(empno, ename, job, mgr, hiredate, sal, comm, deptno)" +
" values(1000,?,?,?,date_format(?,'yyyy-mm-dd'),?,?,?)";
如上 在mysql中把String转换成日期 应该怎么写,用什么函数?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn