•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 423,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,201 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 2369 | Replies: 2
![]() |
•
•
Join Date: Jul 2007
Location: Sofia, Bulgaria
Posts: 138
Reputation:
Rep Power: 2
Solved Threads: 10
MySQL commands :
http://dev.mysql.com/doc/refman/5.0/en/load-data.html
WIth PHP :
Look in the attached file.
- Mitko Kostov
•
•
•
•
You can then import it into a MySQL table by running:
load data local infile 'file.csv' into table table
fields terminated by ','
enclosed by '"'
lines terminated by '\n'
(field1, field2, field3)
The fields here are the actual tblUniq table fields that the data needs to sit in. The enclosed by and lines terminated by are optional and can help if you have columns enclosed with double-quotes such as Excel exports, etc.
http://dev.mysql.com/doc/refman/5.0/en/load-data.html
WIth PHP :
Look in the attached file.
- Mitko Kostov
Last edited by MitkOK : Aug 15th, 2007 at 8:21 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access avatar backup breach broadband code combo crime daniweb data data protection data transfer database design drive dropdownlist forensics government hacker hard hardware hitachi ibm internet linux medicine module net news normalization reuse security server sql storage survey terabyte web wikipedia
- Upload a word file into mysql database (Java)
- insert csv file into mysql through php (PHP)
- convert textfile into mysql database using vb.net (VB.NET)
- Importing csv file to SQL Server Using VB.Net (VB.NET)
- How to read data from csv file in an array and parse (C++)
- error handling in VB6 + + ODBC + MySQL...(Help!!!!) (Visual Basic 4 / 5 / 6)
- CSV file (C)
Other Threads in the MySQL Forum
- Previous Thread: Separator help
- Next Thread: Passing Variable Values as a parameter Name in MySQL


Linear Mode