fractions
Posted in 2003
--------------6E71E599B9EFDEB1895B250C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Gurus, I have some inquiries regarding the expression 'CURRENT' used in SQL. Refering to the statement below : select current year to fraction(5) from [table_name] would produce a result: 2003-06-20 11:34:35.00000 2003-06-20 11:34:35.00000 2003-06-20 11:34:35.00000 2003-06-20 11:34:35.00000 Questions: 1. Notice that the fraction(5) portion on the result set produces '00000' value. Is there something that I need to set to produce this segment? 2. have try to used the 'EXTEND' function but to no avail. Are there any other function that might help? I'm using Informix7.31 in a HPUX11.0 environment. thanks in advance. Regards, Arnel --------------6E71E599B9EFDEB1895B250C Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <tt>Gurus,</tt><tt></tt> <p><tt>I have some inquiries regarding the expression 'CURRENT' used in SQL.</tt> <br><tt>Refering to the statement below :</tt><tt></tt> <p><tt>select current year to fraction(5) from [table_name]</tt><tt></tt> <p><tt>would produce a result:</tt><tt></tt> <p><tt>2003-06-20 11:34:35.00000</tt> <br><tt>2003-06-20 11:34:35.00000</tt> <br><tt>2003-06-20 11:34:35.00000</tt> <br><tt>2003-06-20 11:34:35.00000</tt><tt></tt> <p><tt>Questions:</tt> <br><tt>1. Notice that the fraction(5) portion on the result set produces</tt> <br><tt>'00000' value. Is there something that I need to set to produce this</tt> <br><tt>segment?</tt> <br><tt>2. have try to used the 'EXTEND' function but to no avail. Are there</tt> <br><tt>any other function that might help? I'm using Informix7.31 in a HPUX11.0</tt> <br><tt>environment.</tt><tt></tt> <p><tt>thanks in advance.</tt><tt></tt> <p><tt>Regards,</tt> <br><tt>Arnel</tt></html> --------------6E71E599B9EFDEB1895B250C-- sending to informix-list