Data cleaning: Difference between revisions

Jump to navigation Jump to search
m
m (→‎references: add link to data type)
Line 3: Line 3:
Finds whether a variable is NULL
Finds whether a variable is NULL
* PHP [http://tw2.php.net/is_null is_null]
* PHP [http://tw2.php.net/is_null is_null]
* Google spreadsheet:  
* Google spreadsheet / Excel:  
** [https://support.google.com/drive/answer/3093348 ISERR(value)] " value - The value to be verified as an error type other than #N/A." ex: {{kbd | key = #NULL!}}
** [https://support.google.com/drive/answer/3093348 ISERR(value)] " value - The value to be verified as an error type other than #N/A." ex: {{kbd | key = #NULL!}}
** If the cell value is exactly {{kbd | key = NULL}} not {{kbd | key = #NULL!}}, You may use {{kbd | key = <nowiki>EXACT(value, "NULL")</nowiki>}}
** If the cell value is exactly {{kbd | key = NULL}} not {{kbd | key = #NULL!}}, You may use {{kbd | key = <nowiki>EXACT(value, "NULL")</nowiki>}}
Line 10: Line 10:
Finds whether a variable is NOT NULL
Finds whether a variable is NOT NULL
* MySQL SQL syntax: {{kbd | key = SELECT * FROM table WHERE column IS NOT NULL;}} [http://sqlfiddle.com/#!2/ec1152/2/0 demo]
* MySQL SQL syntax: {{kbd | key = SELECT * FROM table WHERE column IS NOT NULL;}} [http://sqlfiddle.com/#!2/ec1152/2/0 demo]


== check if field value was not fulfilled: NULL, empty value ==
== check if field value was not fulfilled: NULL, empty value ==

Navigation menu