Chuck,
Friday, June 14, 2002, 3:01:58 AM, you wrote:

CPP> If you have mutli-date fields, can you set one date format in mysql sql
CPP> statement for all fields? I have 9 date fields, that like to have the same
CPP> format.

What do you mean one date format? MySQL stores data in certain format,
f.e. 'YYYY-MM-DD' for DATE column. If you want to display data in the
same format, use DATE_FORMAT() function for each column.

CPP> Also I don't want it to work fields that have 0000-00-0000, can I
CPP> tell not to show those?

SELECT * FROM table_name WHERE date_column<>'0000-00-00 00:00:00';




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
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

Reply via email to