Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Insert new Data With SQLScripts Created In Excel

    Does anyone know how to insert new data into a SQL database?
    I have read JUXI's thread "Update Data With SQLScripts Created In Excel " It is an excellent thread on the topic. I just wonder if anyone can give me any information on how to "Insert" data into a SQL database. What is the exact SQL statement for this purpose. Any input is greatly appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Insert new Data With SQLScripts Created In Excel

    Your question is very broad.

    Inserting a record in a database is described in detail here: http://dev.mysql.com/doc/refman/5.1/en/insert.html
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Insert new Data With SQLScripts Created In Excel

    Quote Originally Posted by DrByte View Post
    Your question is very broad.

    Inserting a record in a database is described in detail here: http://dev.mysql.com/doc/refman/5.1/en/insert.html
    Thank you for the reply.

    I mean This:

    INSERT INTO product (ItemNumber, ItemDescription) VALUES (1235, Nike Rx7 );

    what is the syntax in this case of "ItemDescription" in the VALUES area? I tried to put "Nike Rx7" as it appears, but it gives me a syntax error when trying to upload. Should there be some quotes ("text ") or anything to it? I tried to put quotes around the text to no avail.

    Last edited by twi; 14 Mar 2012 at 11:23 PM. Reason: spelling error

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Insert new Data With SQLScripts Created In Excel


  5. #5
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Insert new Data With SQLScripts Created In Excel

    thank you RodG. I will look at it and try to make it work.

 

 

Similar Threads

  1. How to insert data into a new table
    By MCanes in forum General Questions
    Replies: 3
    Last Post: 19 Feb 2008, 11:19 AM
  2. Excel Data Feed
    By Adds in forum General Questions
    Replies: 2
    Last Post: 11 May 2007, 10:51 AM
  3. how to insert css buttons created with CSS Tab Designer 2?
    By lankeeyankee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2007, 08:27 PM
  4. Update Data With SQLScripts Created In Excel
    By JuxiZoza in forum Setting Up Categories, Products, Attributes
    Replies: 74
    Last Post: 23 Mar 2006, 05:16 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR