Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Atualizando registros no servidor
Message
 
À
03/09/2002 07:43:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00696151
Message ID:
00696179
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Não sei qual é o seu server, mas no meu (postgresql), a sua string:
StringUpdate = "update MinhaTabela set nome = " + ;
ALLTRIM(MeuCursorLocal.nome) + " where codigo = " + ;
ALLTRIM(MeuCursorLocal.codigo)
Retorna:
update MinhaTabela set nome = xxx where codigo = xxx
O que dá erro, visto que nome e codigo são alfanumericos, necessitaria ter um apostofo ai ('). ou seja:
StringUpdate = "update MinhaTabela set nome = '" + ;
ALLTRIM(MeuCursorLocal.nome) + "' where codigo = '" + ;
ALLTRIM(MeuCursorLocal.codigo)+"'"
Cordialmente,

Fabiano Costa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform