Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Erro com isnull, porquê?


Mario Lopes

Question

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 Lopes
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

exemplo de uso

SELECT COD, PESSOA, DATA, NOME, RUA, BAIRRO, CIDADE, UF, CEP, TELRES, TELCOM, CPF, RG, CONTATO, EMAIL
FROM Clientes
WHERE  BAIRRO IS NULL

no seu caso

query3.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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...