php?sql语句解决方法

WBOY
Release: 2016-06-13 12:27:08
Original
765 people have browsed it

php?sql语句


我想查出 开始日期(event_start_time)或 结束日期(event_end_time)在 2015-11的所有数据
这个 where 语句要怎么写?
------解决思路----------------------
.... where data_format(event_start_time, '%Y-%m') = '2015-11' or data_format(event_end_time, '%Y-%m') = '2015-11'

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!