<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: What is a SQL blind insert?</title>
	<link>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/</link>
	<description>Stay curious!</description>
	<pubDate>Fri, 08 Aug 2008 18:34:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/#comment-1082</link>
		<author>Xaprb</author>
		<pubDate>Tue, 11 Jul 2006 20:33:28 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/#comment-1082</guid>
		<description>&lt;p&gt;That is true.  The last syntax has the limitation of being one row at a time, though.  And I'm not sure it is supported on all RDBMSs.  I think it was originally an Oracle extension to standard SQL that other vendors now support for compatibility.  I'm looking at the draft SQL 2003 document, 5WD-02-Foundation-2003-09.pdf, section 14.8 and it looks like it's a non-standard syntax.  Still, it's worth knowing about... and as I always say, use it if it makes sense to.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>That is true.  The last syntax has the limitation of being one row at a time, though.  And I&#8217;m not sure it is supported on all RDBMSs.  I think it was originally an Oracle extension to standard SQL that other vendors now support for compatibility.  I&#8217;m looking at the draft SQL 2003 document, 5WD-02-Foundation-2003-09.pdf, section 14.8 and it looks like it&#8217;s a non-standard syntax.  Still, it&#8217;s worth knowing about&#8230; and as I always say, use it if it makes sense to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/#comment-1081</link>
		<author>Sheeri</author>
		<pubDate>Tue, 11 Jul 2006 20:07:26 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/#comment-1081</guid>
		<description>&lt;p&gt;I'll also note that there are 2 ways to do an insert:&lt;/p&gt;

&lt;pre&gt;INSERT into apples (field1,field2....) select.....&lt;/pre&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;pre&gt;INSERT into apples (field1,field2....) VALUES (....&lt;/pre&gt;

&lt;p&gt;are similar in syntax, and then there's&lt;/p&gt;

&lt;pre&gt;INSERT INTO Image set field1="foo",field2="bar",field3=12345;&lt;/pre&gt;

&lt;p&gt;Folks may feel more comfortable with the latter syntax, because they don't have to count which field they're on.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ll also note that there are 2 ways to do an insert:</p>
<pre>INSERT into apples (field1,field2....) select.....</pre>
<p>and</p>
<pre>INSERT into apples (field1,field2....) VALUES (....</pre>
<p>are similar in syntax, and then there&#8217;s</p>
<pre>INSERT INTO Image set field1="foo",field2="bar",field3=12345;</pre>
<p>Folks may feel more comfortable with the latter syntax, because they don&#8217;t have to count which field they&#8217;re on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James at Explode Code</title>
		<link>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/#comment-1073</link>
		<author>James at Explode Code</author>
		<pubDate>Mon, 10 Jul 2006 21:28:43 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2006/07/07/what-is-a-sql-blind-insert/#comment-1073</guid>
		<description>&lt;p&gt;Interesting points. I've been sort of learning as I've gone along and looking at some code I wrote I've got a few blind inserts. I can see why it could easily become a problem when you change something in the database if it isn't specified in the code.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Interesting points. I&#8217;ve been sort of learning as I&#8217;ve gone along and looking at some code I wrote I&#8217;ve got a few blind inserts. I can see why it could easily become a problem when you change something in the database if it isn&#8217;t specified in the code.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
