Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Location
    Houston, Texas USA
    Posts
    33
    Plugin Contributions
    0

    red flag SQL code needed to update products table

    My zencart needs help. While entering new products I entered incorrect info for 'Product Qty Units:' field in the add new products form.

    I can see that the database named ewramos_zenc1 has a table named products and a field called products_quantity_order_units.

    This field currently holds a value of 1000 but needs a value of 1.

    Can anyone supply SQLcode to update the field?

    I'm no database guy so the help pretty much has to be 'cut and paste'.

    Thanks in advance...

  2. #2
    Join Date
    Nov 2008
    Location
    Houston, Texas USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: SQL code needed to update products table

    I found a snipit of code. Can any confirm that it is correct before I blow-up my database?

    Code:
    UPDATE ewramos_zenc1 SET products_quantity_order_units = 1

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SQL code needed to update products table

    You need to use the name of the products table and not the database:
    Code:
    UPDATE products SET products_quantity_order_units = 1;
    Be sure to backup your database first ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Bulk update of prices needed - which table to update thru back end?
    By one tall man in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Dec 2013, 11:02 PM
  2. v150 SQL Update Query for featured products? Help
    By Limitless in forum General Questions
    Replies: 1
    Last Post: 25 Aug 2012, 07:36 PM
  3. Products missing in product _description table SQL
    By jolla in forum General Questions
    Replies: 0
    Last Post: 7 Dec 2010, 07:16 PM
  4. Replies: 3
    Last Post: 12 Apr 2007, 11:27 AM
  5. installing a template-uploading the sql table update
    By cudaboy71 in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 19 Jul 2006, 11:37 PM

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