Mario Lopes Posted October 28, 2011 Report Share Posted October 28, 2011 (edited) Boas amigosPorque não funciona este sql em paradoxquery3.close; query3.sql.Clear; query3.SQL.Add('delete from dados\contas.db where data_inicial=:inicio and data_final=:final and isNull(num_recibo)'); query3.Params[0].AsDate:=datetimepicker1.DateTime; query3.Params[1].AsDate:=datetimepicker2.DateTime; query3.ExecSQL;Cumprimentos Edited October 30, 2011 by Mario Lopes Quote Link to comment Share on other sites More sharing options...
0 Jhonas Posted October 28, 2011 Report Share Posted October 28, 2011 exemplo de usoSELECT COD, PESSOA, DATA, NOME, RUA, BAIRRO, CIDADE, UF, CEP, TELRES, TELCOM, CPF, RG, CONTATO, EMAIL FROM Clientes WHERE BAIRRO IS NULLno seu casoquery3.SQL.Add('delete from dados_contas where data_inicial= :inicio and data_final= :final and num_recibo is null');OBS: evite usar caracteres especiais no nome da tabela ( / )abraço Quote Link to comment Share on other sites More sharing options...
0 Mario Lopes Posted October 30, 2011 Author Report Share Posted October 30, 2011 Grande JhonasObrigadoObsQuando aos caracteres especiais "\" uso-os porque tenho os ficheiros de dados numa pasta chamada dados dentro da pasta onde tenho a aplicação, daí a necessidade de utilização do "\" Quote Link to comment Share on other sites More sharing options...
Question
Mario Lopes
Boas amigos
Porque não funciona este sql em paradox
query3.close;
query3.sql.Clear;
query3.SQL.Add('delete from dados\contas.db where data_inicial=:inicio and data_final=:final and isNull(num_recibo)');
query3.Params[0].AsDate:=datetimepicker1.DateTime;
query3.Params[1].AsDate:=datetimepicker2.DateTime;
query3.ExecSQL;
Cumprimentos
Edited by Mario LopesLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.