<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>statements on Tutes Club</title><link>https://tutes.in/tag/statements/</link><description>Recent content in statements on Tutes Club</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 14 Mar 2017 09:54:03 +0000</lastBuildDate><atom:link href="https://tutes.in/tag/statements/index.xml" rel="self" type="application/rss+xml"/><item><title>Inserting into SQL without specifying primary column</title><link>https://tutes.in/inserting-into-sql-without-specifying-primary-column/</link><pubDate>Tue, 14 Mar 2017 09:52:06 +0000</pubDate><guid>https://tutes.in/inserting-into-sql-without-specifying-primary-column/</guid><description>&lt;p&gt;If Primary key is set to Auto-increment, there are chances that you would not want to provide its value in insert query.&lt;/p&gt;
&lt;p&gt;Here is how to do it in MySQL:&lt;br&gt;
&lt;code&gt;INSERT INTO table_name VALUES (NULL, 'column b', 'col c');&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Assumption^: The first column is the primary key set to AI&lt;br&gt;
&lt;br&gt;
Similarly you can skip columns for other non-required data:&lt;br&gt;
&lt;code&gt;INSERT INTO table_name(col b,col c) VALUES ('column b', 'col c');&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>