How to select data rows from MySQL if i have few date rows separately? -


i have

  1. day column,
  2. month column,
  3. year column,
  4. content1 column,
  5. content2 column,

example:

  1. day 12
  2. month 6
  3. year 2015

what query need select rows between 10/03/2014 , 03/04/2015 example? problem have days , month separately. need extract content1 , content2 regarding 2 dates.

in mysql query work

select content1,content2 the_table  str_to_date(concat(month, '/', day, '/', year), '%m/%d/%y') between '10/03/2014' , '03/04/2015'; 

hope helps out


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -