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
From: "Chris Payne" <[EMAIL PROTECTED]>
Subject: [PHP-DB] Table from an array?
Date: Wed, 2 Feb 2005 16:41:42 -0500
Hi there everyone
Is it possible to create a database table from the first line of a CSV
What I mean is, how would you create the table columns based on the CSV
file’s columns? This would really help me out, as some times the table
column counts change on data I have to import, so it would be nice to have
flexible DB structure rather than a static one.
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 2/1/2005
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php