CSV to MyDB

From: Date: Fri, 25 Feb 2011 15:06:47 +0000
Subject: CSV to MyDB
Groups: php.db 
Request: Send a blank email to php-db+get-47695@lists.php.net to get a copy of this message
Hello everyone, Hope your day is going well. I have a (hopefully) quick question. What is the best way to store a CSV file in a MySQL database? As a varchar, blob, longtext or other? I would like to minimize the amount of fields in the table, so I was leaning towards a longtext or blob. But I don't know the advantages or disadvantages to using these. The text is a excel price list that is exported to a csv and the data will be sent to repopulate a html table that has the same amount of fields. the only catch is some of the fields are descriptions (text) and some are just prices (numbers). Hope this is not an overload of info, just want to inform complete. TIA, Karl DeSaulniers Design Drumm http://designdrumm.com

« previous php.db (#47695) next »