+ Reply to Thread
Results 1 to 9 of 9
Thread: Excel to DB
-
Registered User
- Join Date
- Feb 2006
- Posts
- 114
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Excel to DB
I wondered if there was a way to export an Excel spreadsheet directly into a MySQL DB?
I would rather export it automatically rather than update it manually via my CMS.
-
Registered User
- Join Date
- Jan 2009
- Posts
- 25
- Thanks
- 4
- Thanked 1 Time in 1 Post
Re: Excel to DB
I'm pretty sure if you get the Excel spreadsheet and convert it to CSV format you can then import one of the csv columns into an SQL column within a table.
-
Registered User
- Join Date
- Feb 2006
- Posts
- 114
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Re: Excel to DB
I tried that but didnt work.
There is a nice wizard within Navicat which im trying out now Navicat Oracle, MySQL Admin Tool - the World's Best Oracle Manager, MySQL GUI & PostgreSQL GUI for Windows, Linux & Mac OS X - Download Now! Support Access to MySQL, Excel to MySQL, MySQL editor, MySQL administrator, MySQL frontend, MySQL manager, ph
-
Registered User
- Join Date
- May 2008
- Posts
- 29
- Thanks
- 6
- Thanked 0 Times in 0 Posts
Re: Excel to DB
There are loads of ways of doing this. I havent ever done it myself but can remember researching for a project I have yet to start and it is possible.
I just done a quick Google and there are a few pre-written php classes that you could use.
-
-
Re: Excel to DB
Hi tomraffe,
buy.at have created a feed processing guide document, which can be found here:
http://files.perfiliate.com/solution...GuideFeb09.pdf
The example is for an XML feed, however can be easily used for a CSV/PSV/TSV Excel file format.
Here are some examples of getting a CSV file and then using the mysql query Insert or Update to get the data into your database:
PHP: fgetcsv - Manual
PHP MySQL Insert Into
If you need any help with this please contact myself Reza.Badel@platform-a.com or our Data Quality Manager Simon.Quick@platform-a.com.
Enjoy your weekend
Reza
Solutions Engineer
buy.at
-
Registered User
- Join Date
- Feb 2006
- Posts
- 114
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Re: Excel to DB
Thanks all, Navicat worked well.
-
Re: Excel to DB
Also I have used in the pass Excel to MySql converter programs I have found from google
-
Registered User
- Join Date
- Oct 2008
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Re: Excel to DB
Before you start - backup your database in your Admin,Tools,Database Backup or from phpmyadmin.
In phpmyadmin choose your table
click BROWSE
scroll to the bottom of the page and hit EXPORT
choose CSV for MS Excel
choose from Excel edition: Windows (if on a PC)
click zipped
click GO and save you file to your PC, then unzip and alter in Excel.
When finished altering - Save as csv (comma delimited)
IMPORT CSV
To IMPORT your list of products (or whatever) in phpmyadmin
Go to phpmyadmin and choose your products table
click BROWSE
click SQL tab
Under the 'Run SQL query window' you will see a box marked
Or Location of the textfile:
Location of the textfile:
Underneath you will see some text that says...
"Insert data from a textfile into table"
Click it, you will see this....
Location of the textfile
CHOOSE YOUR CSV FILE YOU SAVED FROM EXCEL AS COMMA DELIMITED
Fields terminated by
CHANGE THIS FIELD TERMINATOR TO A COMMA , HENCE THE CSV (Comma Delimited File)
...DATA LOCAL
Keep this to DATA LOCAL
SUBMIT
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Excel
By Bod in forum Affiliate Marketing LoungeReplies: 1Last Post: 27-04-05, 08:11 AM -
Excel Airways
By KevinEdwards in forum DGM AffiliatesReplies: 0Last Post: 26-01-05, 04:27 PM -
Excel help
By Graham@Buyagift in forum ProgrammingReplies: 2Last Post: 24-08-04, 03:36 PM -
Excel help
By Wardy in forum ProgrammingReplies: 2Last Post: 31-10-03, 01:26 PM


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks