Fórum Deletar registro BdpDataAdapter #281234
11/05/2005
0
Elcilei
Elcilei
Curtir tópico
+ 0Posts
12/05/2005
Elcilei
Lopes
Gostei + 0
12/05/2005
Cristiam
Ex:
bdpDataAdapter1.updateCommand.CommandText := ´Update usuario set login = ?´ bdpDataAdapter1.updateCommand.Parameters.add(´login´, bdptype.&String); bdpDataAdapter1.updateCommand.Parameters[´Login´].Value := tbLogin.Text; bdpConnection1.Open; try bdpDataAdapter1.updateCommand.ExecuteNonquery; finally bdpConnection1.Close; end;
Gostei + 0
12/05/2005
Cristiam
Ops, desculpe-me. :oops:
[color=green:36fa5c7f38]UpdateCommand e InsertCommand[/color:36fa5c7f38]
Gostei + 0
12/05/2005
Elcilei
Grato
Gostei + 0
12/05/2005
Cristiam
Gostei + 0
12/05/2005
Elcilei
outra coisa
usei
bdpDataAdapter1.updateCommand.CommandText := ´Update usuario set login = ?´
bdpDataAdapter1.updateCommand.Parameters.add(´login´, bdptype.&String);
bdpDataAdapter1.updateCommand.Parameters[´Login´].Value := tbLogin.Text;
bdpConnection1.Open;
try
bdpDataAdapter1.updateCommand.ExecuteNonquery;
finally
bdpConnection1.Close;
end;
mas esta alterando todos os registro
Elcilei
Gostei + 0
12/05/2005
Cristiam
Update usuario set login = ? where CPF = ?
e adicionar um parâmetro CPF também
Gostei + 0
12/05/2005
Elcilei
bdpDataAdapter1.updateCommand ?
Elcilei
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)