weverton dias Posted January 18, 2013 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 Report Posted January 18, 2013 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!
João Rodrigo Posted January 18, 2013 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 Report Posted January 18, 2013 Quando o espelho não possui data, qual data deve ser usada?
weverton dias Posted January 18, 2013 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 Author Report Posted January 18, 2013 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.
João Rodrigo Posted January 18, 2013 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 Report Posted January 18, 2013 (edited) experimenta desta maneira: Select a.presenca From sfrequencia a Where a.data =replace( :espelho#1, '', NULL) Edited January 18, 2013 by João Rodrigo
weverton dias Posted January 20, 2013 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 Author Report Posted January 20, 2013 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now