Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null Value error while updating table
Message
De
13/10/2012 05:54:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/10/2012 11:56:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01554883
Message ID:
01554941
Vues:
39
>>Try
>>SET grno=NVL(ID.grno,SPACE(6)) ;
>>
>>>
>>>trying to update table using UPDATE-SQL and keep getting an error, that field "grno" doe snot accept NULL value.
>>>First of all, it happens only when I run EXE, never in APP. and second, I am using NVL function to prevent any NULLs.
>>>
>>>Please see the simple code below:
>>>UPDATE PS1;
>>> SET PS1.grno=NVL(ID.grno,SPACE(6)) ;
>>> FROM PS1 ;
>>> LEFT OUTER JOIN ID1 ON UPPER(PS1.employeeid)=UPPER(ID1.employeeid)
>>>
>>>I tried to use INNER JOIN, but received the same error message.
>>>
>>>And by the way, I modified the table PS1 to allow NULL value in the field "grno".
>>>
>>>Any ideas?
>>>
>>>Thanks
>>>Jerry
>>>
>
>
>Thanks Sergey, same error.
SET grno=NVL(ID1.grno,SPACE(6)) ;
You had a wrong alias there, used ID instead of ID1.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform