que
04-21-2006, 02:21 PM
I have a csv file I would like to import into a table. The csv file has many duplicate rows that I do not need. How do I import this data into a table without the duplicate rows if it is possible.
tia
tia
Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above. vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization |
|
|
|
|
Importing a csv that has duplicate rows into mysqlque 04-21-2006, 02:21 PM I have a csv file I would like to import into a table. The csv file has many duplicate rows that I do not need. How do I import this data into a table without the duplicate rows if it is possible. tia Taylor 04-24-2006, 02:45 PM First import the file into a table. then run a query using GROUP BY to remove duplicates SELECT * FROM oldtable WHERE 1 GROUP BY [columns to remove duplicates from]; CREATE TABLE newtable SELECT distinct * FROM oldtable | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum