简体   繁体   中英

import csv file to database in codeIgniter without repetition?

I import csv file to database ..But If import the same file again the data repetition .. I need to import only the new rows in csv file

example first File f1

progr   progr               2.22222E+13     eee     xxxxx

the second file f2

progr   progr               2.22222E+13     eee     xxxxx
progr   progr               2.22222E+13         

I need if I import f1 then f2

the result is

 progr  progr               2.22222E+13     eee     xxxxx
 progr  progr               2.22222E+13     

but my result

 progr  progr               2.22222E+13     eee     xxxxx
 progr  progr               2.22222E+13     eee     xxxxx
 progr  progr               2.22222E+13     

How can I do that? thanks..

首先导入所有数据,然后在数据库内部进行操作,要容易得多。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM