Hi there everyone
Is it possible to create a database table from the first line of a CSV file?
What I mean is, how would you create the table columns based on the CSV
files columns? This would really help me out, as some times the table
column counts change on data I have to import, so it
On Thursday 03 February 2005 05:41, Chris Payne wrote:
Is it possible to create a database table from the first line of a CSV
file? What I mean is, how would you create the table columns based on the
CSV files columns?
Parse the first line and extract the column names, construct a suitable
Sure you could, the trick would be indentifiying the column data types, but
perhaps you could put those in column name definition.
ie user_id int(10), username varchar(50), etc
bastien
From: Chris Payne [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Table from an array?
Date: Wed