I have a question: Is it possible to select from a MySQL database by comparing one DATE string "2010-04-29" against strings that are stored as DATETIME (2010-04-29 10:00)?
I have one date picker that filters data and I would like to query the table by the DATETIME field like this:
SELECT * FROM `calendar` WHERE startTime = '2010-04-29'"
...and I would like to get the row that has the DATETIME value of "2010-04-29 10:00".
Any suggestions? Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…