Re: MySQL and Numbers
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62771
interpreted = N
texte = Thanks NitaiThat was it!Thierry>Strange I have had not much problems with=20>numbers in the past. But may try this to give a=20>alias to the number:>>Select ean, format(price,2) as myprice>Where xxxxx>>Then get it within WebDNA as [myprice].>>You could also retrieve the "raw" value from the=20>SQL DB and then do the formatting from there.>>Nitai>>-->Redakto CMS - Content Management that simply works>Redakto eServices - Professional WebHelpDesk>Redakto ImagePark - Innovative Asset Management>>ComputerOil=AE AG>Neugutstrasse 66>8600 D=FCbendorf / Switzerland>Telefon +41 (0)844 44 55 66>>info@computeroil.com>http://computeroil.com>> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of>> Thierry Almy>> Sent: Montag, 8. August 2005 13:50>> To: WebDNA Talk>> Subject: MySQL and Numbers>>>> I know this has been covered before but I didn't get the glue ...>>>> WebDNA has problems in showing up the correct value from a MySQL>> Database if the field is a number field (FLOOD, DECIMAL, INT, ...)>>>> In my case it's a field holding the price for an item.>>>> My query lokks like this:>> SELECT ean,price FROM table01 WHERE id=3D1;>>>> so I tried as described earlier in the list:>>>> SELECT ean,FORMAT(price,2) FROM table01 WHERE id=3D1;>> or>> SELECT ean,FORMAT(price,2) AS PERCENT FROM table01 WHERE id=3D1;>>>> in both cases WebDNA will not know the field "price" and is>> displaying it within the brackets: [price]>>>>>> How do you do that?>>>>> > Thierry>>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Thanks NitaiThat was it!Thierry>Strange I have had not much problems with=20>numbers in the past. But may try this to give a=20>alias to the number:>>Select ean, format(price,2) as myprice>Where xxxxx>>Then get it within WebDNA as [myprice].>>You could also retrieve the "raw" value from the=20>SQL DB and then do the formatting from there.>>Nitai>>-->Redakto CMS - Content Management that simply works>Redakto eServices - Professional WebHelpDesk>Redakto ImagePark - Innovative Asset Management>>ComputerOil=AE AG>Neugutstrasse 66>8600 D=FCbendorf / Switzerland>Telefon +41 (0)844 44 55 66>>info@computeroil.com>http://computeroil.com>> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of>> Thierry Almy>> Sent: Montag, 8. August 2005 13:50>> To: WebDNA Talk>> Subject: MySQL and Numbers>>>> I know this has been covered before but I didn't get the glue ...>>>> WebDNA has problems in showing up the correct value from a MySQL>> Database if the field is a number field (FLOOD, DECIMAL, INT, ...)>>>> In my case it's a field holding the price for an item.>>>> My query lokks like this:>> SELECT ean,price FROM table01 WHERE id=3D1;>>>> so I tried as described earlier in the list:>>>> SELECT ean,FORMAT(price,2) FROM table01 WHERE id=3D1;>> or>> SELECT ean,FORMAT(price,2) AS PERCENT FROM table01 WHERE id=3D1;>>>> in both cases WebDNA will not know the field "price" and is>> displaying it within the brackets: [price]>>>>>> How do you do that?>>>>> > Thierry>>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Thierry Almy
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Frames and WebCat (1997)
Webcatalog Plugin for Quid Pro Quo not working (2000)
Pithy questions on webcommerce & siteedit (1997)
Using the new syntax/scoping methods (2000)
fieldType=num (1997)
Protect and Serve (1999)
WebCat on 10.0.4 - iTools 6.0 (2001)
New public beta available (1997)
off topic - dna snipets (1997)
WebCatalog for LinuxPPC/SusePPC? (2000)
NT vs Mac (1997)
Showing unopened cart (1997)
Advanced WebCat Guidelines - do they exist beyond docs (1999)
4.5 Upgrade (2003)
Large databases in WebCat (1997)
Using webcat to roll apache logs (2002)
Frames and WebCat (1997)
[addlineitems] (1997)
AutoCommit Preference? (1998)
Math with Time (1997)