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:  38
  • 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:  38
  • 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:  38
  • 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):

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

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