Daanish G

Daanish G

  • NA
  • 42
  • 7.3k

how can I ignore this and update only the data that is not empty?

Jul 3 2022 5:53 PM

Hey
I have a request:
UPDATE category
SET name = (?) , title = (?), image = (?)
WHERE id = (?)

Instead of (?) I substitute values, but sometimes they can be empty and the request is not accepted, how can I ignore this and update only the data that is not empty?


Answers (3)