The database already provides such a field. To use your previous example,
Custom Field:
SELECT * FROM T WHERE HasAmount AND ( Amount = 10 OR NOT (Amount = 10) )
Provided Field:
SELECT * FROM T WHERE NOT IsNULL(Amount) AND ( Amount = 10 OR NOT (Amount = 10) )
In reply to Re^6: DBI: passing undef as an argument
by ikegami
in thread DBI: passing undef as an argument
by fws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |