I need a simple if example in mysql. I do not want to consider another case only if the sentence
Example:
SELECT *, if (`date_last` IS NULL,prev_date,last_date) as date FROM `table_name` WHERE `id` = 2 ORDER BY `date` DESC
Source: https://habr.com/ru/post/1754190/More articles:Powerbuilder: what does this computed polarizer mean - powerbuilderAndroid ImageButton border? - androidDo I need to shoot internal objects of a COM Interop object? - vb.netGoal C: Different behavior variables in the header file (.h) compared to the implementation file (.m) - objective-cSynchronize solr documents with database records - solrHow can I dry this code? - ruby | fooobar.comHow to parse the contents of a downloaded file in RoR - ruby | fooobar.comhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1754193/rails3-how-to-set-default-conditions-to-hasmany&usg=ALkJrhhO2oZKbdg9iUzbQtOQci-JntfG1AIphone OS 4.0: the application does not fit applicationDidBecomeActive - objective-cCreating Key / Secrets for HMAC-SHA1 - oauthAll Articles