DbOutIsNull (Translator)

De Wiki1000

<source lang="delphi">function DbOutIsNull(iExpr,iResultat:string):string;</source>

Traduit la fonction ISNULL qui remplace NULL par la valeur de remplacement spécifiée.

<source lang='delphi'> cursor.SQL.Add(cursor.Translator.dbOutIsNull('sum(montant)',0)); // Sur MSSQL la fonction retourne : ISNULL(sum(montant),0) // et sur ORACLE : NVL(sum(montant),0) </source>

Translator