Jump to content
Seja Membro VIP - Remova Banners de Propagandas, Tenha Liberado Qualquer Download, Além de Acessos em Áreas Exclusivas!! ×

Recommended Posts


  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  152
  • Content Per Day:  0.03
  • Reputation:   3
  • Achievement Points:  1,193
  • Solved Content:  0
  • Days Won:  5
  • Status:  Offline
  • Age:  37
  • Device:  Windows

Posted

Boa Tarde Pessoal,

Temos o seguinte espelho, ESPELHO#1, este espelha um campo data, que pode variar entre ter data ou não.

A setença abaixo, utiliza este espelho como parâmetro. Entretanto, quando o espelho está sem valor (ou seja, nulo, em branco), a execução da sentença falha e retorna uma mensagem de falha na execução. Como resolver o problema.

Select

a.presenca

From

sfrequencia a

Where

a.data=:espelho#1

Precisamos saber como resolver esse problema, pois a ficha de Registro de Empregados, sempre vem com a mensagem de erro!

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic


  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  290
  • Content Per Day:  0.06
  • Reputation:   17
  • Achievement Points:  1,523
  • Solved Content:  0
  • Days Won:  12
  • Status:  Offline

Posted

Quando o espelho não possui data, qual data deve ser usada?


  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  152
  • Content Per Day:  0.03
  • Reputation:   3
  • Achievement Points:  1,193
  • Solved Content:  0
  • Days Won:  5
  • Status:  Offline
  • Age:  37
  • Device:  Windows

Posted

Quando o espelho não possui data, qual data deve ser usada?

Olá João,

Quando o espelho não possuir data / Valor o campo deverá ficar nulo em branco.


  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  290
  • Content Per Day:  0.06
  • Reputation:   17
  • Achievement Points:  1,523
  • Solved Content:  0
  • Days Won:  12
  • Status:  Offline

Posted (edited)

experimenta desta maneira:

Select

a.presenca

From

sfrequencia a

Where

a.data =replace( :espelho#1, '', NULL)

Edited by João Rodrigo

  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  152
  • Content Per Day:  0.03
  • Reputation:   3
  • Achievement Points:  1,193
  • Solved Content:  0
  • Days Won:  5
  • Status:  Offline
  • Age:  37
  • Device:  Windows

Posted

experimenta desta maneira:

Select

a.presenca

From

sfrequencia a

Where

a.data =replace( :espelho#1, '', NULL)

João, Obrigado mais uma vez, deu certinho aqui.

:EmoticonosMsN (85):

Join the conversation

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

Guest
Reply to this topic...

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


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.