Erro de SQL
dmordem.ZTransmat.SQL.Clear;
dmordem.ZTransmat.SQL.Add(´update transmat set estoque12=estoque12-(select qtdapre1 from tempofemb where tempofemb.codemb5=transmat.codigo)´);
dmordem.ZTransmat.ExecSQL;
Esta dando esse erro nesse comando
EZSQLxception with message ´SQL Error: multiple rows in singleton select. Error Code -811 , multiplr rows in singleton select
dmordem.ZTransmat.SQL.Add(´update transmat set estoque12=estoque12-(select qtdapre1 from tempofemb where tempofemb.codemb5=transmat.codigo)´);
dmordem.ZTransmat.ExecSQL;
Esta dando esse erro nesse comando
EZSQLxception with message ´SQL Error: multiple rows in singleton select. Error Code -811 , multiplr rows in singleton select
Rjcerri
Curtidas 0
Respostas
Rjun
20/02/2006
Tem certeza que o SELECT retorna apenas uma linha?
GOSTEI 0