... ec.fec_ord , "
cSql+= "ec.fec_cap , "
cSql+= "ec.factura , "
cSql+= "dc.id_prod , "
cSql+= "dc.ean , "
cSql+= "ar.descrip1 , "
cSql+= "isnull(dc.cant , 0) as [cantidad], "
cSql+= "isnull(dc.precio, 0.00) as [preciox] , "
cSql+= "dc.lote , "
cSql+= "dc.FECHACAD , "
cSql+= "ec.usuario ...
Pesquisa resultou em 13 ocorrências: +IsNull
Termo pesquisado: +isnull
- 09 Mar 2025 12:45
- Fórum: [x]Harbour
- Tópico: xbase + SQLRDD con harbour
- Respostas: 6
- Exibições: 3715
- 16 Fev 2025 18:38
- Fórum: [x]Harbour
- Tópico: SQL no DBF em breve (promessa) Aleksander Czajczynski
- Respostas: 33
- Exibições: 22197
SQL no DBF em breve (promessa) Aleksander Czajczynski
... Valid dFECFIN >= dFECINI
Read
If LastKey() = 27
Loop
Endif
cSQL := "SELECT "
cSQL += "F.FOLIO AS FACTURA, "
cSQL += "F.FECHA, "
cSQL += "ISNULL(F.VTAEXE,0.00) AS EXENTAS, "
cSQL += "ISNULL(F.VTAGRA,0.00) AS GRAVADAS, "
cSQL += "ISNULL(F.IVA,0.00) AS IVAS, "
cSQL += "( ISNULL(F.VTAEXE,0 ...
Read
If LastKey() = 27
Loop
Endif
cSQL := "SELECT "
cSQL += "F.FOLIO AS FACTURA, "
cSQL += "F.FECHA, "
cSQL += "ISNULL(F.VTAEXE,0.00) AS EXENTAS, "
cSQL += "ISNULL(F.VTAGRA,0.00) AS GRAVADAS, "
cSQL += "ISNULL(F.IVA,0.00) AS IVAS, "
cSQL += "( ISNULL(F.VTAEXE,0 ...
- 14 Ago 2020 19:34
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Mini tutorial mod_harbour
- Respostas: 53
- Exibições: 130174
Mini tutorial mod_harbour
... tb01.*
FROM emp AS tb01
LEFT JOIN (
SELECT TOP :offset empno FROM emp ORDER BY empno ASC
) AS tb02
ON tb01.empno = tb02.empno
WHERE ISNULL(tb02.empno)
ORDER BY tb01.empno ASC
ENDTEXT
cSQLReturn := StrTran( cSQL , ":registroPorPagina" , hb_ntos( nRegistroPorPagina ) )
cSQLReturn ...
FROM emp AS tb01
LEFT JOIN (
SELECT TOP :offset empno FROM emp ORDER BY empno ASC
) AS tb02
ON tb01.empno = tb02.empno
WHERE ISNULL(tb02.empno)
ORDER BY tb01.empno ASC
ENDTEXT
cSQLReturn := StrTran( cSQL , ":registroPorPagina" , hb_ntos( nRegistroPorPagina ) )
cSQLReturn ...
- 14 Ago 2020 19:32
- Fórum: Contribuições, Dicas e Tutoriais
- Tópico: Mini tutorial mod_harbour
- Respostas: 53
- Exibições: 130174
Mini tutorial mod_harbour
... tb01.*
FROM emp AS tb01
LEFT JOIN (
SELECT TOP :offset empno FROM emp ORDER BY empno ASC
) AS tb02
ON tb01.empno = tb02.empno
WHERE ISNULL(tb02.empno)
ORDER BY tb01.empno ASC
Se fosse MySQL/PostgreSQL, por exemplo, bastaria o seguinte :
"SELECT * FROM emp LIMIT ...
FROM emp AS tb01
LEFT JOIN (
SELECT TOP :offset empno FROM emp ORDER BY empno ASC
) AS tb02
ON tb01.empno = tb02.empno
WHERE ISNULL(tb02.empno)
ORDER BY tb01.empno ASC
Se fosse MySQL/PostgreSQL, por exemplo, bastaria o seguinte :
"SELECT * FROM emp LIMIT ...
- 07 Fev 2020 18:06
- Fórum: [x]Harbour
- Tópico: fastreport com sql
- Respostas: 1
- Exibições: 1368
fastreport com sql
... 14,22 GET dFECFIN PICT "@D" VALID dFECFIN >= dFECINI
READ
IF LASTKEY() = 27
LOOP
ENDIF
cSQL := "SELECT F.FOLIO AS FACTURA, F.FECHA, ISNULL(F.VTAEXE,0.00) AS EXENTAS, ISNULL(F.VTAGRA,0.00) AS GRAVADAS, ISNULL(F.IVA,0.00) AS IVAS, ( ISNULL(F.VTAEXE,0.00) + ISNULL(F.VTAGRA,0.00) + ISNULL ...
READ
IF LASTKEY() = 27
LOOP
ENDIF
cSQL := "SELECT F.FOLIO AS FACTURA, F.FECHA, ISNULL(F.VTAEXE,0.00) AS EXENTAS, ISNULL(F.VTAGRA,0.00) AS GRAVADAS, ISNULL(F.IVA,0.00) AS IVAS, ( ISNULL(F.VTAEXE,0.00) + ISNULL(F.VTAGRA,0.00) + ISNULL ...
- 10 Dez 2017 10:06
- Fórum: [x]Harbour
- Tópico: Harbour 3.4 arquivado
- Respostas: 172
- Exibições: 49437
Harbour 3.4 arquivado
... aResults>
2017-11-14 20:30 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbf1.c
! fixed typo in index used inside DBS_ISNULL
! fixed blanking new record for variable length unicode fields (Q:U)
; above fix problems reported by KevinC - many thanks for information
about ...
2017-11-14 20:30 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbf1.c
! fixed typo in index used inside DBS_ISNULL
! fixed blanking new record for variable length unicode fields (Q:U)
; above fix problems reported by KevinC - many thanks for information
about ...
- 19 Dez 2016 16:29
- Fórum: [x]Harbour
- Tópico: Harbour & conversão de imagens pra BMP
- Respostas: 15
- Exibições: 4308
Harbour & conversão de imagens pra BMP
... Header :", hb_ValToExp( iccprofile )
hb_traceLog( "line 183" )
? iccprofile:SayMembers( " ", .T., .T. )
bmpinfoheader:Reset()
#endif
IF ! HB_ISNULL( cStr := hb_MemoRead( IMAGES_IN + "sample1.jpg" ) )
? "Load JPEG from memory"
im := fi_LoadFromMemory( FIF_JPEG, cStr, JPEG_DEFAULT ...
hb_traceLog( "line 183" )
? iccprofile:SayMembers( " ", .T., .T. )
bmpinfoheader:Reset()
#endif
IF ! HB_ISNULL( cStr := hb_MemoRead( IMAGES_IN + "sample1.jpg" ) )
? "Load JPEG from memory"
im := fi_LoadFromMemory( FIF_JPEG, cStr, JPEG_DEFAULT ...
- 11 Mar 2016 16:41
- Fórum: SQL
- Tópico: Erro em comandos SQL
- Respostas: 67
- Exibições: 39791
Erro em comandos SQL
Olá!
Apenas para enriquecer o tópico:
IsNull é uma função do SQL Server que retorna o valor especificado caso o outro valor contenha NULL.
Exemplos SQL Server:
-- considerando que o campo x seja do tipo alfanumérico
SELECT IsNull( x, 'Campo nulo' )
-- considerando que o campo x seja do tipo ...
Apenas para enriquecer o tópico:
IsNull é uma função do SQL Server que retorna o valor especificado caso o outro valor contenha NULL.
Exemplos SQL Server:
-- considerando que o campo x seja do tipo alfanumérico
SELECT IsNull( x, 'Campo nulo' )
-- considerando que o campo x seja do tipo ...
- 11 Mar 2016 15:45
- Fórum: SQL
- Tópico: Erro em comandos SQL
- Respostas: 67
- Exibições: 39791
Erro em comandos SQL
Olá ,
Quintas,
str:=" select data , codproce from "+xarquivo+" where not isnull( historico ) and Length( Trim( historico ) ) = 0 ;"
dá esse erro na execução
Error HY000 - [ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 68
and
fiz assim e deu ...
Quintas,
str:=" select data , codproce from "+xarquivo+" where not isnull( historico ) and Length( Trim( historico ) ) = 0 ;"
dá esse erro na execução
Error HY000 - [ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 68
and
fiz assim e deu ...
- 08 Mar 2016 15:23
- Fórum: SQL
- Tópico: Erro em comandos SQL
- Respostas: 67
- Exibições: 39791
Erro em comandos SQL
Talvez parecido com isto?
not isnull( historico ) and Length( Trim( historico ) ) = 0
not isnull( historico ) and Length( Trim( historico ) ) = 0
- 07 Jun 2015 21:57
- Fórum: [x]Harbour
- Tópico: erro em upper
- Respostas: 15
- Exibições: 2643
erro em upper
... dada a campos alfanuméricos. que podem conter o carácter apóstrofe. (Exemplo: "Caixa d'água"). Isto causa erro no SQL, devendo o apóstrofe ser trocado por dois apóstrofes, como em "Caixa d''água".
Edit: as funções equivalentes em outros SGBDs importantes são NVL() no Oracle, IsNull() no SQL Server.
Edit: as funções equivalentes em outros SGBDs importantes são NVL() no Oracle, IsNull() no SQL Server.
- 23 Mai 2014 01:50
- Fórum: FiveWin
- Tópico: Fazendo Backup no Banco de Dados MYSQL
- Respostas: 9
- Exibições: 8483
Fazendo Backup no Banco de Dados MYSQL
... As Object
LOCAL oErr As Object
LOCAL cSql As Character
Altd()
Try
// Cria novo banco de dados, se não existir
oRs := ExecuteSQL( "SELECT IsNull( db_id('harbour'),0 ) As dbID" )
If ! oRs:Eof()
If oRs:fields("dbID"):value == 0
TEXT INTO cSql
CREATE DATABASE Harbour
ON
( NAME = Harbour ...
LOCAL oErr As Object
LOCAL cSql As Character
Altd()
Try
// Cria novo banco de dados, se não existir
oRs := ExecuteSQL( "SELECT IsNull( db_id('harbour'),0 ) As dbID" )
If ! oRs:Eof()
If oRs:fields("dbID"):value == 0
TEXT INTO cSql
CREATE DATABASE Harbour
ON
( NAME = Harbour ...
- 25 Mai 2009 18:08
- Fórum: [x]Harbour
- Tópico: Perda de Dados no xHarbour
- Respostas: 25
- Exibições: 5977
Re: Perda de Dados no xHarbour
... added support for VFP tables with NULLABLE fields
+ added new dbFieldInfo() action to check if given field is NULL, f.e.:
? dbFieldInfo( DBS_ISNULL, FieldPos( <cFieldName> ) )
The above modifications were not tested with real VFP files. I do
not have VFP. VFP users should make some real life ...
+ added new dbFieldInfo() action to check if given field is NULL, f.e.:
? dbFieldInfo( DBS_ISNULL, FieldPos( <cFieldName> ) )
The above modifications were not tested with real VFP files. I do
not have VFP. VFP users should make some real life ...