HIV Posted April 6, 2007 Share Posted April 6, 2007 Is it possible to make it in one query? For example if the same record exists, it will be updated in database, if not exists it will be inserted. How to make it in one query? Link to comment https://forums.phpfreaks.com/topic/45850-how-to-make/ Share on other sites More sharing options...
effigy Posted April 6, 2007 Share Posted April 6, 2007 Maybe REPLACE? Link to comment https://forums.phpfreaks.com/topic/45850-how-to-make/#findComment-222851 Share on other sites More sharing options...
gluck Posted April 6, 2007 Share Posted April 6, 2007 use replace or use insert .... on duplicate update. I would prefer latter. Link to comment https://forums.phpfreaks.com/topic/45850-how-to-make/#findComment-223033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.