note 78431 added to function.ocicolumnprecision
| From: | webmaster at smwebdesigns dot com | Date: | Thu, 11 Oct 2007 19:39:16 +0000 |
| Subject: | note 78431 added to function.ocicolumnprecision | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131310@lists.php.net to get a copy of this message | ||
I've found that when using ocicolumnprecision or oci_field_precision it will not show you the
decimal places if you are are reading from tables with decimals. You can use ocicolumnscale or
oci_field_scale to find the decimal.
if( ocicolumnscale($R, $i ) > 0 )
{
$int_decimal = ocicolumnscale($R, $i );
$int_length = ocicolumnprecision($R, $i) - $int_decimal;
}
----
Server IP: 69.147.83.197
Probable Submitter: 69.4.4.167
----
Manual Page -- http://www.php.net/manual/en/function.ocicolumnprecision.php
Edit -- https://master.php.net/note/edit/78431
Del: integrated -- https://master.php.net/note/delete/78431/integrated
Del: useless -- https://master.php.net/note/delete/78431/useless
Del: bad code -- https://master.php.net/note/delete/78431/bad+code
Del: spam -- https://master.php.net/note/delete/78431/spam
Del: non-english -- https://master.php.net/note/delete/78431/non-english
Del: in docs -- https://master.php.net/note/delete/78431/in+docs
Del: other reasons-- https://master.php.net/note/delete/78431
Reject -- https://master.php.net/note/reject/78431
Search -- https://master.php.net/manage/user-notes.php