Hello! > i have a query and in the where clause i want to compare dates, > for example in asp i used > select * from table where col_date1 <= now and col_date2 >= now > > what is the similar using mysql
See http://www.mysql.com/doc/ Look up 'date'. See especially Date and Time Types, Date and Time Functions, and Date Calculations. Have a :) day! jb -- jim barchuk [EMAIL PROTECTED] --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php