Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL value is ODBC
Message
From
12/01/2000 09:39:34
 
 
To
12/01/2000 06:41:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00316798
Message ID:
00316919
Views:
13
>If i create an ODBC connect and select data
>i get null values if the fields are not filled.
>
>How can i avoid this

I've never found a way to avoid it, but I use
SET NULLDISPLAY TO SPACE(5)
so the user just sees a blank field.

If I really need to get rid of it for some reason, I've done the following:

SELECT mytable
SCAN
IF ISNULL(theField)
REPLACE theField WITH ""
ENDIF
ENDSCAN

Or, if you can open the table exclusively you can use
ALTER TABLE mytable ALTER COLUMN theField NOT NULL

--Caren
Previous
Reply
Map
View

Click here to load this message in the networking platform