UPDATE - SQL
Publicado por Alexandre BRAZIL (8 intervenciones) el 29/06/2005 19:46:33
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 & "'"
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 & "'"
Valora esta pregunta


0