nullif

How to find last row that ran NULLIF() or has null in mysql?

*爱你&永不变心* 提交于 2020-06-29 03:50:38
问题 I currently run this operation to convert empty strings to null. Is any way to find out the last row that has gone through NULLIF() operation or has null character so I can process everything from that point. My table has a timestamp column. I have 150 columns like recovery_email and I'd like to start from the last empty string was found in either of them. UPDATE table SET recovery_email = NULLIF(recovery_email, ''), # There are 150 columns like recovery_email. email = NULLIF(email, ''),

How to find last row that ran NULLIF() or has null in mysql?

穿精又带淫゛_ 提交于 2020-06-29 03:50:28
问题 I currently run this operation to convert empty strings to null. Is any way to find out the last row that has gone through NULLIF() operation or has null character so I can process everything from that point. My table has a timestamp column. I have 150 columns like recovery_email and I'd like to start from the last empty string was found in either of them. UPDATE table SET recovery_email = NULLIF(recovery_email, ''), # There are 150 columns like recovery_email. email = NULLIF(email, ''),

NULLIF in SQL Loader to compare a string value

馋奶兔 提交于 2019-12-12 05:21:11
问题 I have a file with simple rows that I want to upload into a table using sql loader. However, there is a column that contain values that I want to exclude: e.r. 123;Código Postal *;HH;456 523;Código Postal *;HI;459 723;Código Postal *;HM;450 The column that I want to exclude and asign to NULL is the value "Código Postal *". I want to modify my control file to exclude this value, but is not possible. I have used into control file: EC_CONS_ZIP_CODE "DECODE(:EC_CONS_ZIP_CODE,'Código Postal%',NULL