Mysql y tipo de dato decimal
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Mysql y tipo de dato decimal
You can definitely read decimal data type also from mysql tables with ADO.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Mysql y tipo de dato decimal
Simple test:
Anyone having FWH (not very old version) can build this sample and run from any computer having internet connection.
![Image](https://imagizer.imageshack.com/v2/xq90/923/Wp7hiz.png)
![Image](https://imagizer.imageshack.com/v2/xq90/922/UgeM3k.png)
![Image](https://imagizer.imageshack.com/v2/xq90/922/5FsOKf.png)
Code: Select all | Expand
#include "fivewin.ch"
function Main()
local oCn, oRs
? "Connecting to FWH cloud server"
oCn := FW_OpenAdoConnection( "MYSQL,208.91.198.197,fwhdemo,gnraofwh,Bharat@1950", .t. )
if oCn == nil
? "Connect fail"
return nil
endif
? "Connected." + CRLF + "Reading structure of customer table"
oRs := FW_OpenRecordSet( oCn, "SHOW COLUMNS FROM customer" )
XBROWSER oRs TITLE "customer table : columns"
oRs:Close()
? "Reading customer table"
oRs := FW_OpenRecordSet( oCn, "customer" )
WITH OBJECT oRs:Fields( "salary" )
? :Type, :Precision, :NumericScale // Result: 131 (adNumeric), 8, 2
END
XBROWSER oRs
oRs:Close()
oCn:Close()
return nil
Anyone having FWH (not very old version) can build this sample and run from any computer having internet connection.
![Image](https://imagizer.imageshack.com/v2/xq90/923/Wp7hiz.png)
![Image](https://imagizer.imageshack.com/v2/xq90/922/UgeM3k.png)
![Image](https://imagizer.imageshack.com/v2/xq90/922/5FsOKf.png)
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Mysql y tipo de dato decimal
First, please clarify whether it worked with customer table on the Cloud server?
Depending on your answer, we can help you with your table on your own server.
Depending on your answer, we can help you with your table on your own server.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India