When we execute raw SQL in Django, say insert a tuple into a table. But the tuple we want to insert already exists in the table, how would django handle that? What should I do to handle that?
If you're executing raw SQL, then it's up to you to handle any integrity errors that occur, just as you would with any other pure SQL application.
When we execute raw SQL in Django, say insert a tuple into a table. But the tuple we want to insert already exists in the table, how would django handle that? What should I do to handle that?
If you're executing raw SQL, then it's up to you to handle any integrity errors that occur, just as you would with any other pure SQL application.
0 commentaires:
Enregistrer un commentaire