how work this insert and update with if statement query in mysql : SELECT IFNULL(post.id
,INSERT INTO post(pdate,body) VALUES (1,'a')
,UPDATE post set body='update',pdate=2
)
from post where body='a' and pdate=1