Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with INSERT INTO and Null values
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01241134
Message ID:
01241164
Vues:
24
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform