You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Id is set to a positive integer, Save would query the count of the row to find
out if the row already exists, if not then execute INSERT statement.
otherwise execute UPDATE.
This is not the best solution, since you need 3 queries to check if a row exists.
It would be way easier to just update the row. Check if the query was successfull or greater than zero and if not just insert the statement.
The text was updated successfully, but these errors were encountered:
Currently I only read the docs and i read this:
This is not the best solution, since you need 3 queries to check if a row exists.
It would be way easier to just update the row. Check if the query was successfull or greater than zero and if not just insert the statement.
The text was updated successfully, but these errors were encountered: