I am using sqlite
for local database in mobile and in my database, I have date field with column name RN_CREATE_DATE
. My RN_CREATE_DATE
column value is in this format 'dd-mm-yy HH:MM:SS'
and I want to fetch data with given date. What will be the exact query for that I tried with below database column and value
**RN_CREATE_DATE
2012-07-27 11:04:34
2012-05-28 10:04:34
2012-07-22 09:04:34**
SELECT RN_CREATE_DATE
FROM DISPOSITION
WHERE RN_CREATE_DATE=strftime('%Y', '2012-07-28 12:04:34')
but no result found, just help me out with this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…