Hi, I inherited a db that has a varchar(30) column that holds a date/time stamp in the form of YYYYMMDDHHmmss (ex: 20030124093952)
Well I want to select a range based on the first 8 characters(YYYYMMDD). I currently select a single day by select * from orderheader where orderid like '$date' ; The $date variable equals 20030124% What can I do to get this range selection query to work? Thanks, Chuck Barnett --------------------------------------------------------------------- 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