Re: MySQL and Numbers
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62755
interpreted = N
texte = Strange I have had not much problems with numbers in the past. Bu=t may try this to give a alias to the number:Select ean, format(price,2) as mypriceWhere xxxxxThen get it within WebDNA as [myprice].You could also retrieve the "raw" value from the SQL DB and then=20=do the formatting from there.Nitai--Redakto CMS - Content Management that simply worksRedakto eServices - Professional WebHelpDeskRedakto ImagePark - Innovative Asset Management ComputerOil=C2=AE AGNeugutstrasse 668600 D=C3=BCbendorf / SwitzerlandTelefon +41 (0)844 44 55 66 info@computeroil.comhttp://computeroil.com> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On B=ehalf 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 MySQ=L> 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 digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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:
Strange I have had not much problems with numbers in the past. Bu=t may try this to give a alias to the number:Select ean, format(price,2) as mypriceWhere xxxxxThen get it within WebDNA as [myprice].You could also retrieve the "raw" value from the SQL DB and then=20=do the formatting from there.Nitai--Redakto CMS - Content Management that simply worksRedakto eServices - Professional WebHelpDeskRedakto ImagePark - Innovative Asset Management ComputerOil=C2=AE AGNeugutstrasse 668600 D=C3=BCbendorf / SwitzerlandTelefon +41 (0)844 44 55 66 info@computeroil.comhttp://computeroil.com> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On B=ehalf 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 MySQ=L> 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 digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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/
nitai@computeroil.com
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:
Sendmail Problems (2003)
WebCatalog/WebMerchant bug? (1999)
Why is this search finding the right thing?! (2002)
2 databases problem (1997)
Setting up the server (1997)
simple forum/bboard (2004)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
BinaryBody for ReturnRaw (2003)
WebCat2b15MacPlugin - showing [math] (1997)
FoundItems Question (1998)
Re:PCS Customer submissions ? (1997)
Searching Relational Databases (2004)
remotely creating and populating a stock inventory db -almost there! (1999)
remote install on RH9 (2004)
Happy Halloween - Check out the pumpkin (2002)
WebCatalog2 Feature Feedback (1996)
WebDNA Quick Reference (Reserved Words) (2000)
Pithy questions on webcommerce & siteedit (1997)
Trouble with formula.db (1997)
WebCat b13 CGI -shownext- (1997)