Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What could cause error on this line
Message
 
À
12/10/2011 06:32:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01526039
Message ID:
01526119
Vues:
41
To be totally honest, I never used views in my life, but I thought this is was a runonce kind of conversion no?


>>>Hi,
>>>
>>>I am getting an error a line very similar to the following. The error says "command contains unrecognize phrase/keyword".
>>>
>>>
>>>cSqlInsert = "insert into Mytable (fld1, fld2, fld3) values (?MyTable.fld1, ?MyTable.fld2, ?MyTable.fld3)"
>>>
>>>
>>>The list of fields is actually considerably longer. But what should I be looking at? TIA.
>>
>>Wouldn't it have made more sense to have created views around the msql table and then apply a scatter memvar, insert into .... from memvar? (admittedly for the last time?) :
>
>Not necessarily - views carry maintenance, there's the dbc contention, and, besides, with views you're letting Fox do things automatically behind your back. With SPT you have much more control. Even in the case at hand, one can check for unchanged fields and omit them from the string - feasible with views, too, but not as easily.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform