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? Quote 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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/45850-how-to-make/#findComment-223033 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.