Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Atualizando registros no servidor
Message
 
To
03/09/2002 07:43:37
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00696151
Message ID:
00696179
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform