Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trimming Values from Fox to Oracle
Message
 
 
À
18/10/2001 14:40:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00570333
Message ID:
00570462
Vues:
29
>Mark,
>
>I am a little confused. I am not receiving an error. The data that is being saved back to the Oracle table is not trimmed and I want it to be. Is there a way that I can do this without having to use SPT to do the update?
>
>Matt

OIC, sorry 'bout that. There is no way to trim it on the VFP side except with SPT.

On the Oracle side, you can create an InsertUpdate trigger, that would trim any data you want:
create or replace trigger ADDRESS_HISTORY_BEFORE_INSUPDT
before insert or update on npdes.ADDRESS_HISTORY for each row
declare
BEGIN
 :new.VarCharField1 := rtrim(:old.VarCharField1);
 :new.VarCharField2 := rtrim(:old.VarCharField2);
End;
/
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform