I have a collection of CSV datasets which will all contain different
numbers of columns and different column headers. There will always be
a fixed number of such files and they have some common
characteristics , especially those with column names in common (e.g.,
at some point I will be performing some database joins based upon
similar column names).
Initially I would like to parse each CSV file and automatically create
a mySQL table containing fields corresponding to the CSV file headers.
In some subsequent web page(s) I will be performing some boolean
queries against this mySQL database, and will need to query the field
names on the fly so that I can create suitable drop-down lists for the
user to formulate her query.
I'm really a Perl programmer, but have a feeling that this will be
much easier in PHP.
Thanks in advance for any pointers.
Jonathan
numbers of columns and different column headers. There will always be
a fixed number of such files and they have some common
characteristics , especially those with column names in common (e.g.,
at some point I will be performing some database joins based upon
similar column names).
Initially I would like to parse each CSV file and automatically create
a mySQL table containing fields corresponding to the CSV file headers.
In some subsequent web page(s) I will be performing some boolean
queries against this mySQL database, and will need to query the field
names on the fly so that I can create suitable drop-down lists for the
user to formulate her query.
I'm really a Perl programmer, but have a feeling that this will be
much easier in PHP.
Thanks in advance for any pointers.
Jonathan
Comment