select - MySQL View check if data is NULL -


I must include a case in the selection to choose whether the data I am adding to my view is taped, In which case I want to enter it in zero or not.

Do you mean something like that? Select

  if (`field 'is zero, 0,` field`) ...  

There also "IFNULL ()":

  select IFNULL (`field`, 0) ...  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -