scarlson Posted December 9, 2007 Share Posted December 9, 2007 Is it possible to just do an UPDATE when entering data into a mySQL database? Does mySQL care if you do an UPDATE only or do you have to use INSERT INTO. Scott Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted December 9, 2007 Share Posted December 9, 2007 you can just do an update by itself. Quote Link to comment Share on other sites More sharing options...
scarlson Posted December 9, 2007 Author Share Posted December 9, 2007 Thanks, I figured that would work just fine but wasn't sure if there was a downfall as to not using INSERT INTO Quote Link to comment Share on other sites More sharing options...
revraz Posted December 9, 2007 Share Posted December 9, 2007 INSERT adds a new Row, UPDATE updates an existing row. Quote Link to comment Share on other sites More sharing options...
scarlson Posted December 9, 2007 Author Share Posted December 9, 2007 Ahh, ok. Well then UPDATE is what I want. Thanks for the info. Quote Link to comment 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.