Daanish G

Daanish G

  • 2.1k
  • 42
  • 3.2k

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)