Jump to content

Dates form sql


avo

Recommended Posts

HI

can anyone please point me in the right dirrection with an example ive been looking at the sql manual but struggling to find what i need

i have a sql table with a few date coloums

i would like to select all from the row where month interval + 2 months to whats in the coloum

if this makes sense

a few example of this would be great

All appriciated
Link to comment
https://forums.phpfreaks.com/topic/13500-dates-form-sql/
Share on other sites

first off, what date datatype are you using? date? time? datetime? timestamp?

2nd, can you be a little more clearer with this:

[b]select all from the row where month interval + 2 months to whats in the coloum [/b]

do you mean from like, now to now+2months? or timeA to timeA+2months?
Link to comment
https://forums.phpfreaks.com/topic/13500-dates-form-sql/#findComment-52301
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.