In SQL Developer I have an query like this
select 0.4 num from dual;
that's code returning 0.4, but if i run in php that's query return .4 how to solve this problem ? because i have many table in my database
thanks.
I'm assuming that you're using OCI to connect Oracle with PHP. Therefore, it is not possible because OCI omit zeros in results and PHP convert results to strings. You must implement a wrapper on your queries and use number_format or sprintf function to convert to correct format.
Regards
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.