Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with INSERT INTO and Null values
Message
From
17/07/2007 12:35:33
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241134
Message ID:
01241164
Views:
22
>>I get sometimes the error "MyField cannot accept null values" if I INSERT INTO and do not specify all field names in a table. The not specified field names should be blank and not null, and I could not find out what setting causes this to happen.
>>
>>Any ideas?
>
>Check SET NULL command in Help. This question was recently discussed and I think your best bet would be to list all fields in your INSERT command.

Thanks, I thought I knew the command very well and therefore I never checked the help.
I believed that SET NULL only specifies the NULL setting of fields during Create Table or Create Cursor, and I never realized that Set Null also has impact on Insert SQL!
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform