Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a column placeholder allow NULL
Message
From
02/03/2012 01:56:31
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01536981
Message ID:
01537022
Views:
55
>Hi,
>
>What is the syntax of adding a placeholder-column to a cursor that would allow NULLs?
>
>Here is the code:
>
>
>select MYTABLE.*, CAST(0 AS INT) AS MyField1 FROM MYTABLE
>
>
>I need to make sure that the column MyField1 would accept NULLs. How do I do it? TIA.

to get a nullable integer field,
the min code on SQL SERVER is:
-- fill with null value
SELECT NULL AS IntField
-- fill with not null value
SELECT CAST(3 AS INT) AS IntField
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform