in reply to question for SQL date with win32:odbc
be:-$sql = "select Date_time from Main where Date_Time >= DateAdd(\"h\", - +2, '1/05/2008 05:35') ";
or possibly:-$sql = "select Date_time from Main where Date_Time >= DateAdd(\"h\", - +2, '1/05/2008 05:35:00') ";
Seems like it would explain the error$sql = "select Date_time from Main where Date_Time >= DateAdd(\"h\", - +2, '01/05/2008 05:35:00') ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: question for SQL date with win32:odbc
by benlaw (Scribe) on May 16, 2008 at 01:51 UTC | |
|
Re^2: question for SQL date with win32:odbc
by MidLifeXis (Monsignor) on May 16, 2008 at 17:18 UTC |