<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Load Delimited Data (csv, excel) into MySQL Server</title>
	<atom:link href="http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/feed" rel="self" type="application/rss+xml" />
	<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server</link>
	<description>Kedar&#039;s Blog for MySQL and more</description>
	<lastBuildDate>Wed, 16 May 2012 16:33:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3939</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Wed, 16 May 2012 15:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3939</guid>
		<description>Sampath,

Sorry for the delayed responce due to some &quot;tech&quot; issues on d&#039; blog I couldn&#039;t answer you on timely basis. 
Btw surely you can use strtotime function to convert it into date-time value.

Cheers,
Kedar.</description>
		<content:encoded><![CDATA[<p>Sampath,</p>
<p>Sorry for the delayed responce due to some &#8220;tech&#8221; issues on d&#8217; blog I couldn&#8217;t answer you on timely basis.<br />
Btw surely you can use strtotime function to convert it into date-time value.</p>
<p>Cheers,<br />
Kedar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Load columnar text file into MySQL table &#124; ..::CHANGE is INEVITABLE::..</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3867</link>
		<dc:creator>Load columnar text file into MySQL table &#124; ..::CHANGE is INEVITABLE::..</dc:creator>
		<pubDate>Thu, 03 May 2012 16:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3867</guid>
		<description>[...] Load Delimited Data (csv, excel) into MySQL Server [...]</description>
		<content:encoded><![CDATA[<p>[...] Load Delimited Data (csv, excel) into MySQL Server [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sampath</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3625</link>
		<dc:creator>sampath</dc:creator>
		<pubDate>Sun, 19 Feb 2012 07:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3625</guid>
		<description>hai kedar....

i had csv file where date is in dd:mm:yyyy format and time in hh:mm format can u plz suggest me a LOAD command  to load the csv file to mysql table.....

thanks in advance.....</description>
		<content:encoded><![CDATA[<p>hai kedar&#8230;.</p>
<p>i had csv file where date is in dd:mm:yyyy format and time in hh:mm format can u plz suggest me a LOAD command  to load the csv file to mysql table&#8230;..</p>
<p>thanks in advance&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3555</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 17 Jan 2012 05:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3555</guid>
		<description>Kebman,
I&#039;d use replace / ignore while loading data!

load data infile &#039;FILEPATH/FILENAME&#039; IGNORE into tablename...

Make sure you have key column defined for the stuff to work.</description>
		<content:encoded><![CDATA[<p>Kebman,<br />
I&#8217;d use replace / ignore while loading data!</p>
<p>load data infile &#8216;FILEPATH/FILENAME&#8217; IGNORE into tablename&#8230;</p>
<p>Make sure you have key column defined for the stuff to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kebman</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3553</link>
		<dc:creator>Kebman</dc:creator>
		<pubDate>Mon, 16 Jan 2012 19:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3553</guid>
		<description>How do you exclude lines with duplicate data from the import?</description>
		<content:encoded><![CDATA[<p>How do you exclude lines with duplicate data from the import?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3545</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Fri, 06 Jan 2012 15:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3545</guid>
		<description>Hey aijaz,

I assume if you use simple load command, it will insert the data ignoring the extra column. You should get warning! This is the case when you want to ignore last (4th) column.

Now there is very tricky but easy solution for inserting last 3 values and ignoring 1st column :)
What you&#039;ll do here is specify columns:
&lt;code&gt;
load data infile ........ fields terminated by &#039;STRING&#039; ... (col1,col1,col2,col3);
&lt;code&gt;

I&#039;ll update this in main post too!

Cheers,
Kedar.</description>
		<content:encoded><![CDATA[<p>Hey aijaz,</p>
<p>I assume if you use simple load command, it will insert the data ignoring the extra column. You should get warning! This is the case when you want to ignore last (4th) column.</p>
<p>Now there is very tricky but easy solution for inserting last 3 values and ignoring 1st column <img src='http://kedar.nitty-witty.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
What you&#8217;ll do here is specify columns:<br />
<code><br />
load data infile ........ fields terminated by 'STRING' ... (col1,col1,col2,col3);<br />
</code><code></p>
<p>I'll update this in main post too!</p>
<p>Cheers,<br />
Kedar.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aijaz</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3544</link>
		<dc:creator>aijaz</dc:creator>
		<pubDate>Fri, 06 Jan 2012 14:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3544</guid>
		<description>Hi Kedar,
I had a csv file containing 4 columns, 
and my table has 3 columns.
is it possible to insert only 3 columns by ignoring any column from .csv file (say ignoring 4th column)?</description>
		<content:encoded><![CDATA[<p>Hi Kedar,<br />
I had a csv file containing 4 columns,<br />
and my table has 3 columns.<br />
is it possible to insert only 3 columns by ignoring any column from .csv file (say ignoring 4th column)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Punitha</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3439</link>
		<dc:creator>Punitha</dc:creator>
		<pubDate>Fri, 25 Nov 2011 10:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3439</guid>
		<description>Hi Kedar,

Thanks it&#039;s helps me lot.</description>
		<content:encoded><![CDATA[<p>Hi Kedar,</p>
<p>Thanks it&#8217;s helps me lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3431</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 22 Nov 2011 09:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3431</guid>
		<description>Hi Punitha,

I&#039;m in a bit hurry! So I&#039;d like you to try this kind of &quot;workaround&quot;:

1. Load your csv as it is.
2. Try Splitting the row later as shown in this article: http://kedar.nitty-witty.com/blog/mysql-stored-procedure-split-delimited-string-into-rows

Thanks,
Kedar.</description>
		<content:encoded><![CDATA[<p>Hi Punitha,</p>
<p>I&#8217;m in a bit hurry! So I&#8217;d like you to try this kind of &#8220;workaround&#8221;:</p>
<p>1. Load your csv as it is.<br />
2. Try Splitting the row later as shown in this article: <a href="http://kedar.nitty-witty.com/blog/mysql-stored-procedure-split-delimited-string-into-rows" rel="nofollow">http://kedar.nitty-witty.com/blog/mysql-stored-procedure-split-delimited-string-into-rows</a></p>
<p>Thanks,<br />
Kedar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: punitha</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-5#comment-3430</link>
		<dc:creator>punitha</dc:creator>
		<pubDate>Tue, 22 Nov 2011 08:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3430</guid>
		<description>Hi Kedar,

First great appreciation for your nice work.

I am having CSV file which holding column like

col-1:&quot;TC1&quot;,col-2:&quot;TC2&quot;,col-3:&quot;id1,id2&quot;col-4:&quot;TC4&quot;

Note that col-3 has 2 values, i have to add each rows into table and repeat the other column values for col-3 each value

Isn&#039;t any possible to do this?.

Advance Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Kedar,</p>
<p>First great appreciation for your nice work.</p>
<p>I am having CSV file which holding column like</p>
<p>col-1:&#8221;TC1&#8243;,col-2:&#8221;TC2&#8243;,col-3:&#8221;id1,id2&#8243;col-4:&#8221;TC4&#8243;</p>
<p>Note that col-3 has 2 values, i have to add each rows into table and repeat the other column values for col-3 each value</p>
<p>Isn&#8217;t any possible to do this?.</p>
<p>Advance Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3424</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Fri, 18 Nov 2011 06:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3424</guid>
		<description>Hi Madhura,

Well I assume you&#039;ll have to manually compile the source on Windows.
The Source is availble on the download page itself.

You may refer ronald&#039;s blog for further compiling help: http://rpbouman.blogspot.com/2007/09/creating-mysql-udfs-with-microsoft.html


I hope this helps,
Kedar.</description>
		<content:encoded><![CDATA[<p>Hi Madhura,</p>
<p>Well I assume you&#8217;ll have to manually compile the source on Windows.<br />
The Source is availble on the download page itself.</p>
<p>You may refer ronald&#8217;s blog for further compiling help: <a href="http://rpbouman.blogspot.com/2007/09/creating-mysql-udfs-with-microsoft.html" rel="nofollow">http://rpbouman.blogspot.com/2007/09/creating-mysql-udfs-with-microsoft.html</a></p>
<p>I hope this helps,<br />
Kedar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhura</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3422</link>
		<dc:creator>Madhura</dc:creator>
		<pubDate>Fri, 18 Nov 2011 06:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3422</guid>
		<description>Hey Kedar,

I refered to your link kedar.nitty-witty.com/blog/using-load-data-infile-with-stored-procedure-workaround-mysql.

But the thing is I am using Windows XP. Can you tell me what should i do to make this work in Windows? I am a new bee to my sql.</description>
		<content:encoded><![CDATA[<p>Hey Kedar,</p>
<p>I refered to your link kedar.nitty-witty.com/blog/using-load-data-infile-with-stored-procedure-workaround-mysql.</p>
<p>But the thing is I am using Windows XP. Can you tell me what should i do to make this work in Windows? I am a new bee to my sql.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3320</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Wed, 21 Sep 2011 09:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3320</guid>
		<description>James,

Your syntax appears proper to me and works perfectly when I tried! I hope you&#039;ve your file at proper place with right permission for mysql to get hold of it.

In the mean time if you&#039;re in too hurry to find &amp; shoot the problem with LOAD DATA, I can suggest you a quick work-around:
1. 
- alter your table -&gt; `aging_date` date default &#039;2007-09-30&#039;
- run you syntax above without passing aging_date, it will be populated as default.

2. if you can&#039;t alter, just fire an update query.</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Your syntax appears proper to me and works perfectly when I tried! I hope you&#8217;ve your file at proper place with right permission for mysql to get hold of it.</p>
<p>In the mean time if you&#8217;re in too hurry to find &#038; shoot the problem with LOAD DATA, I can suggest you a quick work-around:<br />
1.<br />
- alter your table -> `aging_date` date default &#8217;2007-09-30&#8242;<br />
- run you syntax above without passing aging_date, it will be populated as default.</p>
<p>2. if you can&#8217;t alter, just fire an update query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3318</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 20 Sep 2011 18:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3318</guid>
		<description>Help! I cannot get the SET command to work for my upload.  I have tried just about everything that I can think of and found via web research.  Not sure what I am missing.  Everything works perfectly when the SET command is not present.

load data local infile &#039;/uploaded_files/aging_file.txt&#039; into table aging_pre_2007 fields terminated by &#039;\t&#039; escaped by &#039;&#039; lines terminated by &#039;\r\n&#039; (branch_number, customer_number, document_number, apply_to, order_number, document_date, due_date, order_type, line_amount, freight_tax) set aging_date = &#039;2007-09-30&#039;;

Table Details:

`aging_number` int(11) NOT NULL auto_increment,
  `aging_date` date default NULL,
  `branch_number` char(2) default NULL,
  `customer_number` varchar(6) default NULL,
  `document_number` varchar(6) default NULL,
  `apply_to` varchar(6) default NULL,
  `order_number` varchar(6) default NULL,
  `document_date` date default NULL,
  `due_date` date default NULL,
  `order_type` varchar(6) default NULL,
  `line_amount` double(15,2) default NULL,
  `freight_tax` double(15,2) default NULL,
  PRIMARY KEY  (`aging_number`),
  UNIQUE KEY `aging_number` (`aging_number`)

Tab delimited text file includes branch_number, customer_number, document_number, apply_to, order_number, document_date, due_date, order_type, line_amount and freight_tax.  I need to add the aging date because it cannot be added to the text file, but I know what it is.

Thanks.</description>
		<content:encoded><![CDATA[<p>Help! I cannot get the SET command to work for my upload.  I have tried just about everything that I can think of and found via web research.  Not sure what I am missing.  Everything works perfectly when the SET command is not present.</p>
<p>load data local infile &#8216;/uploaded_files/aging_file.txt&#8217; into table aging_pre_2007 fields terminated by &#8216;\t&#8217; escaped by &#8221; lines terminated by &#8216;\r\n&#8217; (branch_number, customer_number, document_number, apply_to, order_number, document_date, due_date, order_type, line_amount, freight_tax) set aging_date = &#8217;2007-09-30&#8242;;</p>
<p>Table Details:</p>
<p>`aging_number` int(11) NOT NULL auto_increment,<br />
  `aging_date` date default NULL,<br />
  `branch_number` char(2) default NULL,<br />
  `customer_number` varchar(6) default NULL,<br />
  `document_number` varchar(6) default NULL,<br />
  `apply_to` varchar(6) default NULL,<br />
  `order_number` varchar(6) default NULL,<br />
  `document_date` date default NULL,<br />
  `due_date` date default NULL,<br />
  `order_type` varchar(6) default NULL,<br />
  `line_amount` double(15,2) default NULL,<br />
  `freight_tax` double(15,2) default NULL,<br />
  PRIMARY KEY  (`aging_number`),<br />
  UNIQUE KEY `aging_number` (`aging_number`)</p>
<p>Tab delimited text file includes branch_number, customer_number, document_number, apply_to, order_number, document_date, due_date, order_type, line_amount and freight_tax.  I need to add the aging date because it cannot be added to the text file, but I know what it is.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3316</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Fri, 16 Sep 2011 04:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3316</guid>
		<description>Hi Kedar,

Nice work! I&#039;m having a doubt regarding values from the file columns that have characters like &#039;,&#039; (comma). how to handle these kind of columns while uploading? 
E.g. If there is file Example.csv which has col1: item1 col2:&quot;Some description like a,b,c&quot;. We are uploading based on &#039;,&#039; delimiter. So, how to ignore &#039;,&#039; from the values from a given column?

Thanks,
Vaibhav.</description>
		<content:encoded><![CDATA[<p>Hi Kedar,</p>
<p>Nice work! I&#8217;m having a doubt regarding values from the file columns that have characters like &#8216;,&#8217; (comma). how to handle these kind of columns while uploading?<br />
E.g. If there is file Example.csv which has col1: item1 col2:&#8221;Some description like a,b,c&#8221;. We are uploading based on &#8216;,&#8217; delimiter. So, how to ignore &#8216;,&#8217; from the values from a given column?</p>
<p>Thanks,<br />
Vaibhav.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3305</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 06 Sep 2011 16:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3305</guid>
		<description>First case you can do:

LOAD DATA INFILE &#039;c:/example.csv&#039; INTO TABLE example FIELDS TERMINATED BY &#039;,&#039; LINES TERMINATED BY &#039;\n&#039; set col3=if(col3=&#039;&#039;,0,col3);

and same for the next.

Hope this works... I&#039;m in bit hurry  :P</description>
		<content:encoded><![CDATA[<p>First case you can do:</p>
<p>LOAD DATA INFILE &#8216;c:/example.csv&#8217; INTO TABLE example FIELDS TERMINATED BY &#8216;,&#8217; LINES TERMINATED BY &#8216;\n&#8217; set col3=if(col3=&#8221;,0,col3);</p>
<p>and same for the next.</p>
<p>Hope this works&#8230; I&#8217;m in bit hurry  <img src='http://kedar.nitty-witty.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3304</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 06 Sep 2011 15:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3304</guid>
		<description>I have stumbled upon an unexpected problem...

Is there a way of handling input data with missing values?

for example, what if a line had a missing value which should ideally be signified by a zero? Is there a way of making the 1st input below read: a  2  0 

col-1,col-2,col-3

a,2,


Likewise, what about a zero value in the middle of the input line, like this,

col-1,col-2,col-3

a,,3


Thanks if you&#039;re able to offer any ideas on this!!</description>
		<content:encoded><![CDATA[<p>I have stumbled upon an unexpected problem&#8230;</p>
<p>Is there a way of handling input data with missing values?</p>
<p>for example, what if a line had a missing value which should ideally be signified by a zero? Is there a way of making the 1st input below read: a  2  0 </p>
<p>col-1,col-2,col-3</p>
<p>a,2,</p>
<p>Likewise, what about a zero value in the middle of the input line, like this,</p>
<p>col-1,col-2,col-3</p>
<p>a,,3</p>
<p>Thanks if you&#8217;re able to offer any ideas on this!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toko Bunga Alam</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3275</link>
		<dc:creator>Toko Bunga Alam</dc:creator>
		<pubDate>Wed, 03 Aug 2011 16:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3275</guid>
		<description>i got problem with INFILE user previlege, on a shared hosting.
so i use fgetcsv() instead</description>
		<content:encoded><![CDATA[<p>i got problem with INFILE user previlege, on a shared hosting.<br />
so i use fgetcsv() instead</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ily</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3161</link>
		<dc:creator>ily</dc:creator>
		<pubDate>Fri, 29 Apr 2011 18:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3161</guid>
		<description>hi,
i want to know how to save fuzzy number to my sql.
example :
Equally important = (1,1,3)
how to save three value into one field, equally important.</description>
		<content:encoded><![CDATA[<p>hi,<br />
i want to know how to save fuzzy number to my sql.<br />
example :<br />
Equally important = (1,1,3)<br />
how to save three value into one field, equally important.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joice</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3040</link>
		<dc:creator>Joice</dc:creator>
		<pubDate>Thu, 03 Mar 2011 17:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3040</guid>
		<description>Thanks Kedar!</description>
		<content:encoded><![CDATA[<p>Thanks Kedar!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3038</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 01 Mar 2011 08:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3038</guid>
		<description>Hey Krunal, 

What exactly you want to do?</description>
		<content:encoded><![CDATA[<p>Hey Krunal, </p>
<p>What exactly you want to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krunal</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-3037</link>
		<dc:creator>krunal</dc:creator>
		<pubDate>Tue, 01 Mar 2011 08:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-3037</guid>
		<description>Is there any way to select particular form of data from csv file using regular expression in &quot;load data infile&quot; query and using SET we assign that value into column in which we want that data ???</description>
		<content:encoded><![CDATA[<p>Is there any way to select particular form of data from csv file using regular expression in &#8220;load data infile&#8221; query and using SET we assign that value into column in which we want that data ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AgileFuse Consulting</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-1864</link>
		<dc:creator>AgileFuse Consulting</dc:creator>
		<pubDate>Thu, 23 Dec 2010 01:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-1864</guid>
		<description>www.agilefuseconsulting.co.cc/csvtomysql/

This is the  CSV to MySQL tool. The tool was developed through the use of html5 and file api. The tool works best on firefox and google chrome browser(latest version). Be that as it may,pls. be advised that importation of  large data would require a substantial amount of time to complete, and  may also cause memory limit error so use the tool with caution.</description>
		<content:encoded><![CDATA[<p><a href="http://www.agilefuseconsulting.co.cc/csvtomysql/" rel="nofollow">http://www.agilefuseconsulting.co.cc/csvtomysql/</a></p>
<p>This is the  CSV to MySQL tool. The tool was developed through the use of html5 and file api. The tool works best on firefox and google chrome browser(latest version). Be that as it may,pls. be advised that importation of  large data would require a substantial amount of time to complete, and  may also cause memory limit error so use the tool with caution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-1598</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 14 Dec 2010 06:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-1598</guid>
		<description>Hey Chris,
  Things will be Simple &amp; Easy once we do it... those words you may consider as placeholders to reduce the complexity ;)
Importantly, let me know how can I help you, if anything is unclear!  
Cheers.</description>
		<content:encoded><![CDATA[<p>Hey Chris,<br />
  Things will be Simple &#038; Easy once we do it&#8230; those words you may consider as placeholders to reduce the complexity <img src='http://kedar.nitty-witty.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Importantly, let me know how can I help you, if anything is unclear!<br />
Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-1597</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 14 Dec 2010 02:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-1597</guid>
		<description>You keep using words like &#039;simple&#039; and &#039;easy&#039;, all the while providing the most convoluted explanation possible...</description>
		<content:encoded><![CDATA[<p>You keep using words like &#8216;simple&#8217; and &#8216;easy&#8217;, all the while providing the most convoluted explanation possible&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-1194</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 30 Nov 2010 07:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-1194</guid>
		<description>Joice, 

Sorry for the delay but here you go with steps:

http://kedar.nitty-witty.com/blog/using-load-data-infile-with-stored-procedure-workaround-mysql

- Kedar.</description>
		<content:encoded><![CDATA[<p>Joice, </p>
<p>Sorry for the delay but here you go with steps:</p>
<p><a href="http://kedar.nitty-witty.com/blog/using-load-data-infile-with-stored-procedure-workaround-mysql" rel="nofollow">http://kedar.nitty-witty.com/blog/using-load-data-infile-with-stored-procedure-workaround-mysql</a></p>
<p>- Kedar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joice Fung</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-4#comment-1132</link>
		<dc:creator>Joice Fung</dc:creator>
		<pubDate>Thu, 25 Nov 2010 18:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-1132</guid>
		<description>Since load data infile is prohibited in a stored procedure, what would be the workaround to import a csv file into MySQL d/b?</description>
		<content:encoded><![CDATA[<p>Since load data infile is prohibited in a stored procedure, what would be the workaround to import a csv file into MySQL d/b?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-147</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Fri, 24 Sep 2010 15:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-147</guid>
		<description>Zeera,

Please understand what group by is doing. count(*) is not limiting number of records to one, but its taking all records which are not duplicated in table.

Below query&#039;s result will give you more understanding:

select *,count(*) as occurrences from z group by a,b,c;
</description>
		<content:encoded><![CDATA[<p>Zeera,</p>
<p>Please understand what group by is doing. count(*) is not limiting number of records to one, but its taking all records which are not duplicated in table.</p>
<p>Below query&#8217;s result will give you more understanding:</p>
<p>select *,count(*) as occurrences from z group by a,b,c;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-146</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 24 Sep 2010 09:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-146</guid>
		<description>sowie 4 the icon.. i don&#039;t know how its there..</description>
		<content:encoded><![CDATA[<p>sowie 4 the icon.. i don&#8217;t know how its there..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-145</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 24 Sep 2010 09:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-145</guid>
		<description>by chances.. is count(*)=1 only read 1 line of record?

if a have table as below:

col1    col2     col3
---------------------
1       2         3
1       2         3
1       2         3
1       2         4
1       2         5
1       2         4

can it show? -&gt;

col1    col2     col3
---------------------
1       2         4
1       2         5
1       2         4


if i use ur coding it will only return 1 record which is:

col1    col2     col3
---------------------
1       2         5


any suggestion? i&#039;m dying here :(</description>
		<content:encoded><![CDATA[<p>by chances.. is count(*)=1 only read 1 line of record?</p>
<p>if a have table as below:</p>
<p>col1    col2     col3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1       2         3<br />
1       2         3<br />
1       2         3<br />
1       2         4<br />
1       2         5<br />
1       2         4</p>
<p>can it show? -&gt;</p>
<p>col1    col2     col3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1       2         4<br />
1       2         5<br />
1       2         4</p>
<p>if i use ur coding it will only return 1 record which is:</p>
<p>col1    col2     col3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1       2         5</p>
<p>any suggestion? i&#8217;m dying here <img src='http://kedar.nitty-witty.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-144</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 24 Sep 2010 06:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-144</guid>
		<description>kedar.. thanks alot.. its work..</description>
		<content:encoded><![CDATA[<p>kedar.. thanks alot.. its work..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-143</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Fri, 24 Sep 2010 05:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-143</guid>
		<description>Zeera, Check this example:

create table z
(
a int,
b int,
c int
);

insert into z values (1,2,3), (1,2,3), (1,2,4);

select * from z group by a,b,c having count(*)=1;</description>
		<content:encoded><![CDATA[<p>Zeera, Check this example:</p>
<p>create table z<br />
(<br />
a int,<br />
b int,<br />
c int<br />
);</p>
<p>insert into z values (1,2,3), (1,2,3), (1,2,4);</p>
<p>select * from z group by a,b,c having count(*)=1;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-142</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 24 Sep 2010 02:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-142</guid>
		<description>hi all..



is it possible to select only not same record?

table1
=====

col1     col2      col3
----------------------------
1        2            3
1        2            3
1        2            4


expected output
===========
col1        col2        col3
---------------------------------
1            2            4




i&#039;ve try selfjoin query but it not give the result i want

select distinct  p1.col1,p1.col2,p2.col3
from BOEdata as p1, BOEdata as p2
where  p1.col1 = p2.col1 and p1.col2=p2.Scol2 and p2.col3 != p1.col3


it give this output
-------------------
col1      col2          col3
----------------------------
1         2               3
1         2               4</description>
		<content:encoded><![CDATA[<p>hi all..</p>
<p>is it possible to select only not same record?</p>
<p>table1<br />
=====</p>
<p>col1     col2      col3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1        2            3<br />
1        2            3<br />
1        2            4</p>
<p>expected output<br />
===========<br />
col1        col2        col3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1            2            4</p>
<p>i&#8217;ve try selfjoin query but it not give the result i want</p>
<p>select distinct  p1.col1,p1.col2,p2.col3<br />
from BOEdata as p1, BOEdata as p2<br />
where  p1.col1 = p2.col1 and p1.col2=p2.Scol2 and p2.col3 != p1.col3</p>
<p>it give this output<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
col1      col2          col3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1         2               3<br />
1         2               4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-139</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 14 Sep 2010 17:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-139</guid>
		<description>Hey Bich,
I believe case file will help here...
You should try something like

load data infile &#039;path/to/file.csv&#039; into table TABLENAME fields terminated by &#039;,&#039; (col1,col2,@TRUEFALSECOLVAR) set TRUEFALSECOL=case @TRUEFALSECOLVAR when &#039;true&#039; then 0 when &#039;false&#039; then &#039;1&#039; end;

You may even try with if(@variable=&#039;true&#039;,0,1).

Hope this helps,
Thanks.</description>
		<content:encoded><![CDATA[<p>Hey Bich,<br />
I believe case file will help here&#8230;<br />
You should try something like</p>
<p>load data infile &#8216;path/to/file.csv&#8217; into table TABLENAME fields terminated by &#8216;,&#8217; (col1,col2,@TRUEFALSECOLVAR) set TRUEFALSECOL=case @TRUEFALSECOLVAR when &#8216;true&#8217; then 0 when &#8216;false&#8217; then &#8217;1&#8242; end;</p>
<p>You may even try with if(@variable=&#8217;true&#8217;,0,1).</p>
<p>Hope this helps,<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bich</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-138</link>
		<dc:creator>Bich</dc:creator>
		<pubDate>Tue, 14 Sep 2010 15:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-138</guid>
		<description>In my CSV file, I have an boolean column that is store like this : &#039;false&#039; or &#039;true&#039;. How to tell MySQL to convert false = 0 and true = 1? Cause when importing the file, I get warning sucha as : Incorrect Integer value : &#039;false&#039;.

Thanks!</description>
		<content:encoded><![CDATA[<p>In my CSV file, I have an boolean column that is store like this : &#8216;false&#8217; or &#8216;true&#8217;. How to tell MySQL to convert false = 0 and true = 1? Cause when importing the file, I get warning sucha as : Incorrect Integer value : &#8216;false&#8217;.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-135</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Tue, 07 Sep 2010 00:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-135</guid>
		<description>about my T/F table.. is it a problem as i don&#039;t have a key for each tables? i&#039;m not sure what id can i use since table a and b can be uploaded at different time</description>
		<content:encoded><![CDATA[<p>about my T/F table.. is it a problem as i don&#8217;t have a key for each tables? i&#8217;m not sure what id can i use since table a and b can be uploaded at different time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-3#comment-133</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Mon, 06 Sep 2010 05:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-133</guid>
		<description>Please read how IF works on dev.mysql documentation.

Please understand what you&#039;ve done in your query.
As you&#039;re joining on StepName, you will get data where StepName from t1 and t2 will be same. So, IF condition is always going to fall in true part. So, when you write &quot;false,true&quot; it will show false and the reverse.</description>
		<content:encoded><![CDATA[<p>Please read how IF works on dev.mysql documentation.</p>
<p>Please understand what you&#8217;ve done in your query.<br />
As you&#8217;re joining on StepName, you will get data where StepName from t1 and t2 will be same. So, IF condition is always going to fall in true part. So, when you write &#8220;false,true&#8221; it will show false and the reverse.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-132</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Mon, 06 Sep 2010 00:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-132</guid>
		<description>this is my query:

select
if(t1.StepName=t2.StepName,&#039;true&#039;,&#039;false&#039;) as StepName
from ProcessSpec t1,VerifiedData t2
where t1.StepName=t2.StepName;

it give all the output as true. if i write &#039;false&#039;,&#039;true&#039;
it will give all the output as false..</description>
		<content:encoded><![CDATA[<p>this is my query:</p>
<p>select<br />
if(t1.StepName=t2.StepName,&#8217;true&#8217;,'false&#8217;) as StepName<br />
from ProcessSpec t1,VerifiedData t2<br />
where t1.StepName=t2.StepName;</p>
<p>it give all the output as true. if i write &#8216;false&#8217;,'true&#8217;<br />
it will give all the output as false..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-130</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-130</guid>
		<description>Yes... I try to help whenever possible and available.

1. About your comment on load data query... below is the output:


mysql&gt; load data infile &#039;d:/test.csv&#039; into table my2 fields terminated by &#039;,&#039; (a
,c,d);
Query OK, 3 rows affected, 3 warnings (0.01 sec)
Records: 3  Deleted: 0  Skipped: 0  Warnings: 3

mysql&gt; select * from my2;
+------+------+------+------+
&#124; a    &#124; b    &#124; c    &#124; d    &#124;
+------+------+------+------+
&#124;    1 &#124; NULL &#124; b    &#124; d    &#124;
&#124;    1 &#124; NULL &#124; bb   &#124; dd   &#124;
&#124;    1 &#124; NULL &#124; bbb  &#124; ddd  &#124;
+------+------+------+------+
3 rows in set (0.00 sec)

I&#039;m not sure what you&#039;re upto and what are you doing.

2. About ur true/false output you can join both tables:

select if(t1.col1=t2.col1,&#039;true&#039;,&#039;false&#039;) as Col1 from table1 t1,table2 t2 where t1.SMCOL=t2.SMCOL;

You may further mail me your exact requirements.</description>
		<content:encoded><![CDATA[<p>Yes&#8230; I try to help whenever possible and available.</p>
<p>1. About your comment on load data query&#8230; below is the output:</p>
<p>mysql> load data infile &#8216;d:/test.csv&#8217; into table my2 fields terminated by &#8216;,&#8217; (a<br />
,c,d);<br />
Query OK, 3 rows affected, 3 warnings (0.01 sec)<br />
Records: 3  Deleted: 0  Skipped: 0  Warnings: 3</p>
<p>mysql> select * from my2;<br />
+&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;+<br />
| a    | b    | c    | d    |<br />
+&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;+<br />
|    1 | NULL | b    | d    |<br />
|    1 | NULL | bb   | dd   |<br />
|    1 | NULL | bbb  | ddd  |<br />
+&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;+<br />
3 rows in set (0.00 sec)</p>
<p>I&#8217;m not sure what you&#8217;re upto and what are you doing.</p>
<p>2. About ur true/false output you can join both tables:</p>
<p>select if(t1.col1=t2.col1,&#8217;true&#8217;,'false&#8217;) as Col1 from table1 t1,table2 t2 where t1.SMCOL=t2.SMCOL;</p>
<p>You may further mail me your exact requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-129</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 03 Sep 2010 08:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-129</guid>
		<description>how can i insert into another table when compare data from 2 table?

example:
-------
table a
-------
col1 &#124; col2 &#124; col3 &#124; col4
-------------------------
a  &#124;  b   &#124;  e    &#124; d
w    &#124;   x  &#124;   y  &#124;  z

  table b
-------
 col1 &#124; col2 &#124; col3 &#124; col4
-------------------------
 a    &#124;   b  &#124;   c  &#124;  d
  w  &#124;  x   &#124;  m    &#124;  n


the compare table - the result after compare two table
------------------------------------------------------

col1 &#124; col2 &#124; col3 &#124; col4
-------------------------
True &#124; True &#124; False&#124; True
True &#124; True &#124; False&#124; False


--can anyone help me here? (T_T)</description>
		<content:encoded><![CDATA[<p>how can i insert into another table when compare data from 2 table?</p>
<p>example:<br />
&#8212;&#8212;-<br />
table a<br />
&#8212;&#8212;-<br />
col1 | col2 | col3 | col4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
a  |  b   |  e    | d<br />
w    |   x  |   y  |  z</p>
<p>  table b<br />
&#8212;&#8212;-<br />
 col1 | col2 | col3 | col4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 a    |   b  |   c  |  d<br />
  w  |  x   |  m    |  n</p>
<p>the compare table &#8211; the result after compare two table<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>col1 | col2 | col3 | col4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
True | True | False| True<br />
True | True | False| False</p>
<p>&#8211;can anyone help me here? (T_T)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-128</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 03 Sep 2010 08:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-128</guid>
		<description>how can i insert into another table when compare data from 2 table?

example:
-------
table a                           table b
-------                           -------
col1 &#124; col2 &#124; col3 &#124; col4    col1 &#124; col2 &#124; col3 &#124; col4
-------------------------    -------------------------
a    &#124;   b  &#124;   c  &#124;  d        a  &#124;  b   &#124;  e    &#124; d
w    &#124;   x  &#124;   y  &#124;  z        w  &#124;  x   &#124;  m    &#124;  n


the compare table - the result after compare two table
------------------------------------------------------

col1 &#124; col2 &#124; col3 &#124; col4
-------------------------
True &#124; True &#124; False&#124; True
True &#124; True &#124; False&#124; False


--can anyone help me here? (T_T)</description>
		<content:encoded><![CDATA[<p>how can i insert into another table when compare data from 2 table?</p>
<p>example:<br />
&#8212;&#8212;-<br />
table a                           table b<br />
&#8212;&#8212;-                           &#8212;&#8212;-<br />
col1 | col2 | col3 | col4    col1 | col2 | col3 | col4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-    &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
a    |   b  |   c  |  d        a  |  b   |  e    | d<br />
w    |   x  |   y  |  z        w  |  x   |  m    |  n</p>
<p>the compare table &#8211; the result after compare two table<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>col1 | col2 | col3 | col4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
True | True | False| True<br />
True | True | False| False</p>
<p>&#8211;can anyone help me here? (T_T)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-127</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Fri, 03 Sep 2010 00:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-127</guid>
		<description>ok.. lets say i use ur example.. only the syntax i choose some column..

load data infile into table mytable fields terminated by &#039;,&#039; (a,c,d);

--&gt; it insert into a,b,c column instead</description>
		<content:encoded><![CDATA[<p>ok.. lets say i use ur example.. only the syntax i choose some column..</p>
<p>load data infile into table mytable fields terminated by &#8216;,&#8217; (a,c,d);</p>
<p>&#8211;&gt; it insert into a,b,c column instead</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-126</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Thu, 02 Sep 2010 05:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-126</guid>
		<description>How is your csv?

See below example:
Table:
------
CREATE TABLE `mytable` (
  `a` int(11) default NULL,
  `b` varchar(5) default NULL,
  `c` varchar(5) default NULL,
  `d` varchar(5) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

CSV:
----
1,b,d,c
1,bb,dd,cc
1,bbb,ddd,ccc

Syntax:
-------
Load data infile &#039;d:/test.csv&#039; into table mytable fields terminated by &#039;,&#039; optionally enclosed by &#039;&quot;&#039;  lines terminated by &#039;\r\n&#039; (a,b,d,c);

This loads data in proper order.</description>
		<content:encoded><![CDATA[<p>How is your csv?</p>
<p>See below example:<br />
Table:<br />
&#8212;&#8212;<br />
CREATE TABLE `mytable` (<br />
  `a` int(11) default NULL,<br />
  `b` varchar(5) default NULL,<br />
  `c` varchar(5) default NULL,<br />
  `d` varchar(5) default NULL<br />
) ENGINE=MyISAM DEFAULT CHARSET=latin1;</p>
<p>CSV:<br />
&#8212;-<br />
1,b,d,c<br />
1,bb,dd,cc<br />
1,bbb,ddd,ccc</p>
<p>Syntax:<br />
&#8212;&#8212;-<br />
Load data infile &#8216;d:/test.csv&#8217; into table mytable fields terminated by &#8216;,&#8217; optionally enclosed by &#8216;&#8221;&#8216;  lines terminated by &#8216;\r\n&#8217; (a,b,d,c);</p>
<p>This loads data in proper order.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-125</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Thu, 02 Sep 2010 00:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-125</guid>
		<description>morning Kedar..

about the your earlier suggestion..

LOAD DATA INFILE ‘file.csv’ INTO TABLE tablename (col1,col3,col5,col2…);

i do it but it still not in order.. it does not follow the (col1,col3,col5,.....).. it just insert from col1,col2 until the end...

any suggestion?</description>
		<content:encoded><![CDATA[<p>morning Kedar..</p>
<p>about the your earlier suggestion..</p>
<p>LOAD DATA INFILE ‘file.csv’ INTO TABLE tablename (col1,col3,col5,col2…);</p>
<p>i do it but it still not in order.. it does not follow the (col1,col3,col5,&#8230;..).. it just insert from col1,col2 until the end&#8230;</p>
<p>any suggestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-124</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Wed, 25 Aug 2010 07:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-124</guid>
		<description>Thanks Kedar..

I managed to make it using perl.. just not yet captured the font color..</description>
		<content:encoded><![CDATA[<p>Thanks Kedar..</p>
<p>I managed to make it using perl.. just not yet captured the font color..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-123</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Wed, 25 Aug 2010 04:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-123</guid>
		<description>Hi,
I&#039;m not much into dev but I can sense it&#039;s possible. There are PHP classes to generate Excel-worksheets available. &quot;Google&quot;ing right keywords will give you the solution.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m not much into dev but I can sense it&#8217;s possible. There are PHP classes to generate Excel-worksheets available. &#8220;Google&#8221;ing right keywords will give you the solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-2#comment-122</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Tue, 24 Aug 2010 04:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-122</guid>
		<description>thanks.... but i&#039;m developing new system since here they only use excel to store evrythng..
anyway thanks for the idea..

--&gt; just wanna ask if u know how to autogenerate the excel file either to text or csv with the font color as one column after the next? mmm.. example is like below:

i want output in csv like this: (is it possible)

Zeera, blue, 22, blue, London, black

its mean Zeera and 22 are in blue color while London in black color..

i need to make comparison afterwords..</description>
		<content:encoded><![CDATA[<p>thanks&#8230;. but i&#8217;m developing new system since here they only use excel to store evrythng..<br />
anyway thanks for the idea..</p>
<p>&#8211;&gt; just wanna ask if u know how to autogenerate the excel file either to text or csv with the font color as one column after the next? mmm.. example is like below:</p>
<p>i want output in csv like this: (is it possible)</p>
<p>Zeera, blue, 22, blue, London, black</p>
<p>its mean Zeera and 22 are in blue color while London in black color..</p>
<p>i need to make comparison afterwords..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-1#comment-121</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Tue, 24 Aug 2010 03:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-121</guid>
		<description>Zeera,
- You should ask a formatted input, may be you can publish a template and reject user uploads which are not as per template.
- You can use &#039;DESC tablename&#039;, will show you column names in order. It will also show you data type information and whether the column is &#039;allow-null&#039; or not.
- About parsing user inputs I believe instead of using &quot;load data&quot; you might need some data parsing script when your inputes are not consistent.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Zeera,<br />
- You should ask a formatted input, may be you can publish a template and reject user uploads which are not as per template.<br />
- You can use &#8216;DESC tablename&#8217;, will show you column names in order. It will also show you data type information and whether the column is &#8216;allow-null&#8217; or not.<br />
- About parsing user inputs I believe instead of using &#8220;load data&#8221; you might need some data parsing script when your inputes are not consistent.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-1#comment-120</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Tue, 24 Aug 2010 00:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-120</guid>
		<description>sorry for the wrong word..

-what if the file is uploded by the user? how to know the column order?</description>
		<content:encoded><![CDATA[<p>sorry for the wrong word..</p>
<p>-what if the file is uploded by the user? how to know the column order?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeera</title>
		<link>http://kedar.nitty-witty.com/blog/load-delimited-data-csv-excel-into-mysql-server/comment-page-1#comment-119</link>
		<dc:creator>zeera</dc:creator>
		<pubDate>Tue, 24 Aug 2010 00:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=440#comment-119</guid>
		<description>thanks Kedar... i know it will work..

but how about the csv file is uploaded by the user?

how am i supposely know the table order?

and i won&#039;t know what column is nullable for the file..

- i&#039;m using php with mysql -

any idea to solve my solution? thanks in advance</description>
		<content:encoded><![CDATA[<p>thanks Kedar&#8230; i know it will work..</p>
<p>but how about the csv file is uploaded by the user?</p>
<p>how am i supposely know the table order?</p>
<p>and i won&#8217;t know what column is nullable for the file..</p>
<p>- i&#8217;m using php with mysql -</p>
<p>any idea to solve my solution? thanks in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>

