SQL - UPDATE
Publicado por Alexandre (19 intervenciones) el 29/06/2005 19:47:40
Estimados Latinos:
Estoy con dificultades de hacer que dos instrucciones update (sql), sea hecha en una solo linea:
Hoy tengo
selecao = "UPDATE TABELA_PEDIDOSDETALHESLOTEfat set loteroths='" & TxtNLote.Text & "' WHERE loteroths='" & TxtLotRoths.Text & "'"
bd.Execute (selecao)
selecao = "UPDATE TABELA_PEDIDOSDETALHESLOTEFAT set loteband='" & TxtNBand.Text & "' WHERE loteband='" & TxtBand.Text & "'"
bd.Execute (selecao)
¿Es possible hacer las dos instrucciones con un “AND” ?
selecao = "UPDATE TABELA_PEDIDOSDETALHESLOTEfat set loteroths='" & TxtNLote.Text & "' WHERE loteroths='" & TxtLotRoths.Text & "' AND UPDATE TABELA_PEDIDOSDETALHESLOTEFAT set loteband='" & TxtNBand.Text & "' WHERE loteband='" & TxtBand.Text & "'"
Gracias
Estoy con dificultades de hacer que dos instrucciones update (sql), sea hecha en una solo linea:
Hoy tengo
selecao = "UPDATE TABELA_PEDIDOSDETALHESLOTEfat set loteroths='" & TxtNLote.Text & "' WHERE loteroths='" & TxtLotRoths.Text & "'"
bd.Execute (selecao)
selecao = "UPDATE TABELA_PEDIDOSDETALHESLOTEFAT set loteband='" & TxtNBand.Text & "' WHERE loteband='" & TxtBand.Text & "'"
bd.Execute (selecao)
¿Es possible hacer las dos instrucciones con un “AND” ?
selecao = "UPDATE TABELA_PEDIDOSDETALHESLOTEfat set loteroths='" & TxtNLote.Text & "' WHERE loteroths='" & TxtLotRoths.Text & "' AND UPDATE TABELA_PEDIDOSDETALHESLOTEFAT set loteband='" & TxtNBand.Text & "' WHERE loteband='" & TxtBand.Text & "'"
Gracias
Valora esta pregunta


0