<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043077" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043077</link>
    <description></description>
    <language>en</language>
          <item>
    <title>If you specify ON DUPLICATE</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1285617</link>
    <description> &lt;p&gt;If you specify ON DUPLICATE KEY UPDATE , and a row is inserted that would cause a duplicate value in a UNIQUE index or PRIMARY KEY&lt;/p&gt;
 </description>
     <pubDate>Sat, 22 Jun 2013 07:36:37 +0000</pubDate>
 <dc:creator>lynnabbyy</dc:creator>
 <guid isPermaLink="false">comment 1285617 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>for insert- insert into</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1284267</link>
    <description> &lt;p&gt;for insert- insert into tablename values(&#039;abs&#039;, 23, &#039;retye&#039;, 30);&lt;br /&gt;
for update-update tablename set attribute1=value1 where some_attribute=some_value;&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Apr 2013 05:48:40 +0000</pubDate>
 <dc:creator>RohanJaiswal</dc:creator>
 <guid isPermaLink="false">comment 1284267 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>GOd I love this forum</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1281404</link>
    <description> &lt;p&gt;GOd I love this forum&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Nov 2012 12:06:10 +0000</pubDate>
 <dc:creator>princeromoe</dc:creator>
 <guid isPermaLink="false">comment 1281404 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>$insert_query=&quot;insert into</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1273964</link>
    <description> &lt;p&gt;$insert_query=&quot;insert into puppybasket (number_of_puppies,color) values (&#039;val1&#039;,&#039;val2&#039;)&quot;; //val1 has the number and val2 has the color&lt;br /&gt;
mysql_query($insert_query);&lt;br /&gt;
$update_query=&quot;update basket set total=total+&#039;val1&#039; where condition&quot;; // total will be updated to total+number of new puppies added.&lt;br /&gt;
mysql_query($update_query);&lt;/p&gt;
 </description>
     <pubDate>Thu, 15 Mar 2012 12:21:44 +0000</pubDate>
 <dc:creator>David26</dc:creator>
 <guid isPermaLink="false">comment 1273964 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Dear i m sending you two</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1264663</link>
    <description> &lt;p&gt;Dear i m sending you two mysql queries just check it, hope you will be satisfied.&lt;br /&gt;
1.insert into myUserTable (userId,login_time) values(3421,432432);&lt;/p&gt;
&lt;p&gt;update myUserTable set logged_counts=logged_counts+1;&lt;br /&gt;
2.insert into myUserTable (userId,login_time)values(3421,3122) on DUPLICATE KEY UPDATE logged_counts=logged_counts+1;&lt;/p&gt;
&lt;p&gt;-- if the table is empty it will insert 0 as the first value, as long as u do not have default as 1.&lt;br /&gt;
just try it&lt;/p&gt;
 </description>
     <pubDate>Fri, 06 May 2011 01:39:25 +0000</pubDate>
 <dc:creator>jhnbrwn</dc:creator>
 <guid isPermaLink="false">comment 1264663 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>i think shaggy has posted the</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1246353</link>
    <description> &lt;p&gt;i think shaggy has posted the most exact answer near to me.&lt;br /&gt;
i really appreciate his little effort.&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Dec 2009 12:44:54 +0000</pubDate>
 <dc:creator>adairace</dc:creator>
 <guid isPermaLink="false">comment 1246353 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You have to have a</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1241852</link>
    <description> &lt;p&gt;You have to have a relatively newer MySQL server... I think  on duplicate key  became available on mysql 4.1&lt;/p&gt;
 </description>
     <pubDate>Thu, 21 May 2009 18:07:52 +0000</pubDate>
 <dc:creator>Megatron</dc:creator>
 <guid isPermaLink="false">comment 1241852 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thanks to this thread it</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1240818</link>
    <description> &lt;p&gt;Thanks to this thread it really helped me.... for updating some of my content&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 12:22:30 +0000</pubDate>
 <dc:creator>n1tr0b</dc:creator>
 <guid isPermaLink="false">comment 1240818 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thats going to save a lot of</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1239627</link>
    <description> &lt;p&gt;Thats going to save a lot of time!  I should be reading the mysql docs instead of the forums.  Thanks for the tip!&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Mar 2009 03:58:50 +0000</pubDate>
 <dc:creator>altweb</dc:creator>
 <guid isPermaLink="false">comment 1239627 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Works perfect. Thanks</title>
    <link>https://www.webmaster-forums.net/web-database-development/mysql-insert-update#comment-1238401</link>
    <description> &lt;p&gt;Works perfect. Thanks Shaggy!&lt;/p&gt;
 </description>
     <pubDate>Wed, 18 Feb 2009 08:20:34 +0000</pubDate>
 <dc:creator>serpico</dc:creator>
 <guid isPermaLink="false">comment 1238401 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
