Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

-_KIKO_-

Problema com Update

Recommended Posts

Imagem Postada aaaaa =P

 

Query23  =  "UPDATE DISTINCTROW lastpost SET lastpost='"&(lastpost)&"',tempo='"&(tempo)&"'"&_" Where (topicid = " & topicid & ")"db.execute(Query23)
Naum acontece a Update, ele vai como se "passasse" reto..... Imagem Postada

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tente fazer assim:

 

Query23 = "UPDATE DISTINCTROW lastpost SET lastpost='"& lastpost &"', tempo=' "&tempo&"' "&_

"WHERE topicid LIKE '"& topicid &"' "

db.execute (Query23)

 

Deve funcionar... senão volte a reportar aqui falow?

 

T+

 

Carlos MAGNO

Gerente de Desenvolvimento

M2 BRASIL Network

http://www.m2brasil.com

Compartilhar este post


Link para o post
Compartilhar em outros sites

cara o q é eisso aqui?

Query23 = "UPDATE DISTINCTROW lastpost SET lastpost='"&(lastpost)&"',tempo='"&(tempo)&"'"&_

" Where (topicid = " & topicid & ")"

db.execute(Query23)

tente tirar ele , ficando assim

Query23  =  "UPDATE DISTINCTROW SET lastpost='"&(lastpost)&"',tempo='"&(tempo)&"'"&_" Where (topicid = " & topicid & ")"db.execute(Query23)
Flows

Imagem Postada

Compartilhar este post


Link para o post
Compartilhar em outros sites

cara o q é eisso aqui?

Query23 = "UPDATE DISTINCTROW lastpost SET lastpost='"&(lastpost)&"',tempo='"&(tempo)&"'"&_

" Where (topicid = " & topicid & ")"

db.execute(Query23)

tente tirar ele , ficando assim
Query23  =  "UPDATE DISTINCTROW SET lastpost='"&(lastpost)&"',tempo='"&(tempo)&"'"&_" Where (topicid = " & topicid & ")"db.execute(Query23)
Flows

Imagem Postada

 

 

 

LastPost deve ser o nome da tabela parceiro... Lembra da sintaxe do update?

 

UPDATE <tabela> SET <campos>...<criterio>

 

Mas para estar passando pelo execute e não estar acontecendo o update, pode ser que a cláusula where não esteja sendo atendida...

 

- Fernando Botelho

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.