Jump to content

automatic EXCEL to SQL import


Recommended Posts

Hello. I leave you excel in a program that allows the exportation of any query to a excel spreadsheet MYSQL. It is ideal for listings largos.Solo must fill out the form asks us qeu (has macros) and give START, the program creates a TXT with SQL then we should run it from phpmyadmin.

Remember that tables are Prestashop products and product_lang (there are more tables for the attributes).

Any doubt, consult!

XLS2SQL.xls

Link to comment
Share on other sites

  • 4 months later...

I think that yor program make possible to transfer any excel list off products and prices to the database used by prestashop and this is the what i am looking for :)

Can you explain better how this work?

I don´t understand if i have to use one or the two programs that you provide and how it works, because i never worked with Excel :roll:



Your help will be very important for me.

Thanks in advance :)

Link to comment
Share on other sites

I just have understand how it works but is not work ok.

When you generate de txt file give this code to insert in SQL :

/* Created by XLS2SQL (2k4) */
USE prestashop;
INSERT INTO `ps_product` (`reference`,`price`) VALUES 
 ("AH1534",21,66),
 ("AH1535",20,79);



This code give error in insert the values in database, but if correct the "AH1534" to 'AH1534' and 21,66 to '21.66' it will work ok.

/* Created by XLS2SQL (2k4) */
USE prestashop;
INSERT INTO `ps_product` (`reference`,`price`) VALUES 
 ('AH1534','21.66'),
 ('AH1534','20.79');

12586_kIvPwmmHwDGAvtm1LP2b_t

12587_KVmR2D5GamSiSeWhdopx_t

12588_e5hEGdHYHJhiDkBJishv_t

12589_pWwsGvu5rOaWqYiWxUeb_t

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...