Login   Register  
PHP Classes
elePHPant
Icontem

Class: csv2sql

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Valerio Giuffrida  >  csv2sql  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: csv2sql
Base name: csv2sql
Description: Convert CSV files into SQL INSERT statements
Related classes: ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1534 users
All time rank: 2114
Week users: 2 users
Week rank: 1677
Picture of Valerio Giuffrida
Author: Valerio Giuffrida <e-mail contact>
Packages: 2 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Age: 24
All time rank: 73927 in Italy Italy
Week rank: 836 Down30 in Italy Italy Down


  Detailed description  
This class can be used to convert CSV (Comma Separated Values) files into SQL INSERT statements.

It can parse a CSV file to extract the field names from the first file line and the data to insert from the remaining lines.

It generates SQL INSERT statements using the field names and data from the parsed CSV file lines.

The list of SQL INSERT statements can be returned as an array or stored in a given output file.

 

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file csv2sql.class.php Class Class csv2sql
Plain text file example.php Example How to use csv2sql class
Plain text file test.csv Data CSV example file

Download all files: csv2sql.tar.gz csv2sql.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.