Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default How insert info SQL? Script basics?

    Hi!

    I have a question about writing a script for inserting a large volume of information into a database.

    Two questions:
    First, can the SQL Query Executor (Admin/Tools/Install SQL Patches) be used to insert data into my store? Would it be better to somehow use phpMyAdmin?

    Second, can someone please provide a BASIC demonstration that would show me how to write a script that:
    - Accesses a table
    - References an existing entry
    - Inserts information into an associated cell

    This is not what I'm doing, but for the sake of demonstration, it would be cool if you could show me how to write a script would look up an existing PRODUCT ID and then insert a PRICE. Maybe do two products so I can see how to replicate?

    Thanks,
    Mike

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How insert info SQL? Script basics?

    If you are seeking adding altering products I suggest you get the 3rd party module "easy populate" from the downloads area

    There is a wiki article on it's use

  3. #3
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: How insert info SQL? Script basics?

    Hi Kobra,

    Thanks for the input.

    I have Easy Populate, it is a wonderful mod and I have gotten lots of good use out it. And you are right, I want to do something similar to that.

    Can anybody show me how to write a very very simple script? Or maybe provide a link to where I could go research it?

    Thanks,
    Mike

  4. #4
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: How insert info SQL? Script basics?

    In case anybody else stumbles in here looking for the same thing, I think I found the answer HERE.

    Good luck!

 

 

Similar Threads

  1. Where do I insert a Redirect Script for my mobile site?
    By Painted Hills NB in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Oct 2016, 06:17 PM
  2. How to insert Comodo script?
    By jweb1369 in forum General Questions
    Replies: 5
    Last Post: 31 Aug 2010, 02:36 AM
  3. how can I insert extra product info into extra db table?
    By lndlyb4 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Feb 2010, 07:18 PM
  4. How to insert products by SQL query?
    By zildjian in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 28 Feb 2009, 12:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg