date format - Syntax error in DATE_FORMAT MySql Query -


i'm trying select fields table 2 of fields date. i'm trying make return them in different format 1 they're written it.

so tried like:

select id, date_format(checkindate, %e %m %y), date_format(checkoutdate, %e %m %y), roomid checkins checkoutdate = '2013-05-19' 

checkindate , checkout date in mysql date format yyyy-mm-dd.

i'm trying create following result:

id, dd-mm-yyyy, dd-mm-yyyy, roomid 

i'm getting: have error in sql syntax

missing single quotes.

select id,       date_format(checkindate, '%e-%m-%y') checkindate,       date_format(checkoutdate, '%e-%m-%y') checkoutdate,       roomid  checkins  checkoutdate = '2013-05-19' 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -