Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: VFP9 SQL Qu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 11 Topic 841 of 861
Post > Topic >>

Re: VFP9 SQL Query Column Width Bites Again!

by "Stefan Wuebbe" <stefan.wuebbe@[EMAIL PROTECTED] > May 9, 2008 at 07:47 AM

"Gene Wirchenko" <genew@[EMAIL PROTECTED]
> wrote in message 
news:hg87241haega7mpeje3tf2o1n56og7u520@[EMAIL PROTECTED]
> Jeroen van Kalken <I@[EMAIL PROTECTED]
> wrote:
>
>>On Thu, 08 May 2008 14:08:56 -0700, Gene Wirchenko <genew@[EMAIL PROTECTED]
>
>>wrote:
>>
>>in VFP9 you can also use the CAST function to get the right amount of
>>digits; making it slightly more readable/understandable.
>>Like:  Cast(nvl(pcl.cpcl,0) as n(10,1))
>
>     This is getting messier.  It appears that I will be adjusting a
> lot of code.
>     Is case() ever necessary when a column is being used directly?
> i.e.
>          select thiscol,thatcol from ...
> I am hoping that such usage is always safe.

Right, Cast() is useful for intentional type conversions and for
"padding" calculated columns, so in an average SQL field list
it might normally be an exception.




hth
-Stefan




-- 
 |\_/| ------ ProLib - programmers liberty -----------------
 (.. ) Our MVPs and MCPs make the Fox run....
  - /  See us at www.prolib.de or www.AFPages.de
 -----------------------------------------------------------
 




 11 Posts in Topic:
VFP9 SQL Query Column Width Bites Again!
Gene Wirchenko <genew@  2008-05-08 14:08:56 
Re: VFP9 SQL Query Column Width Bites Again!
"Dan Freeman" &  2008-05-08 14:17:31 
Re: VFP9 SQL Query Column Width Bites Again!
Jeroen van Kalken <I@[  2008-05-09 01:25:10 
Re: VFP9 SQL Query Column Width Bites Again!
Gene Wirchenko <genew@  2008-05-08 18:02:39 
Re: VFP9 SQL Query Column Width Bites Again!
"Stefan Wuebbe"  2008-05-09 07:47:48 
Re: VFP9 SQL Query Column Width Bites Again!
Rush Strong <rpstrong@  2008-05-09 14:56:19 
Re: VFP9 SQL Query Column Width Bites Again!
"Dan Freeman" &  2008-05-09 08:43:16 
Re: VFP9 SQL Query Column Width Bites Again!
"John Pugh" <  2008-05-09 09:11:18 
Re: VFP9 SQL Query Column Width Bites Again!
"Tom Libby" <  2008-05-09 09:26:53 
Re: VFP9 SQL Query Column Width Bites Again!
Bernhard Sander <fuchs  2008-05-09 17:11:17 
Re: VFP9 SQL Query Column Width Bites Again!
Rush Strong <rpstrong@  2008-05-09 15:25:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 10:46:11 CST 2008.