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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:35:19
Original
1077 people have browsed it

mysqldate

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template