MySQL Forums
Forum List  »  MySQL Query Browser

i am new on MySQL and i have some problem with between ... and ...
Posted by: Massoud Hosseinali
Date: October 05, 2011 11:45PM

Im using asp (vb script) and mysql for my web site, im changing my database from access to mySQL
when i use this line for SQL

"SELECT * FROM tbl_games WHERE game_highlight=1 AND (game_date BETWEEN CAST('" & DateAdd("d", pastdaysi, ServerTime) & "' AS datetime) AND CAST('" & DateAdd("d", futuredaysi, ServerTime) & "' AS datetime)) ORDER BY game_date ASC;"

and the result is empty ...

donno whts the problem with this query ... ?
any help ?



Edited 1 time(s). Last edit at 10/06/2011 12:27AM by Massoud Hosseinali.

Options: ReplyQuote


Subject
Written By
Posted
i am new on MySQL and i have some problem with between ... and ...
October 05, 2011 11:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.