dbTalk Databases Forums  

VFP9 SQL Query Column Width Bites Again!

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP9 SQL Query Column Width Bites Again! in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #91  
Old   
Dan Freeman
 
Posts: n/a

Default Re: VFP9 SQL Query Column Width Bites Again! - 05-09-2008 , 10:43 AM






Gene Wirchenko wrote:
Quote:
Jeroen van Kalken <I (AT) dont (DOT) like.spam> wrote:

On Thu, 08 May 2008 14:08:56 -0700, Gene Wirchenko <genew (AT) ocis (DOT) net
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.
Yes, a single column should be safe. They'll always all be the same width,
by definition.

Dan




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.