osCmax v2.5 User Manual
Results 1 to 2 of 2

Empty a specific field in a table from DB?

This is a discussion on Empty a specific field in a table from DB? within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; I'm not really too savvy in the db, but I wanted to empty the information in a specific field inside ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Jun 2004
    Posts
    258
    Rep Power
    0


    Default Empty a specific field in a table from DB?

    I'm not really too savvy in the db, but I wanted to empty the information in a specific field inside the table

    for example:

    orders>customer name

    inside the orders table I want to empty ONLY the customer's name

  2. #2
    Member mfleeson's Avatar
    Join Date
    Aug 2004
    Location
    Lindisfarne, UK
    Posts
    40
    Rep Power
    0


    Default Re: Empty a specific field in a table from DB?

    Hi,
    Assuming you have access to run sql, i.e. phpmyadmin or commandline mysql or you can write a php function you just need to call a mysql update.

    i.e. run the sql
    UPDATE orders set customers_name="";

    which will wipe all customers names, or for a specific order id:

    UPDATE orders set customers_name="" where orders_id=XYZ;

    changing XYZ to your relavent order id.

    Best Wishes

    Mark

Similar Threads

  1. Specific Shipping Rules HELP PLEASE!
    By Ladeedodd in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 10-16-2008, 03:03 PM
  2. Group specific links
    By metalman923 in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 07-22-2008, 12:05 AM
  3. Field Model empty in Advanced search result
    By frie in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 09-09-2007, 04:19 AM
  4. Add new field to product table
    By aeava in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 01-16-2007, 02:33 PM
  5. Add new fields/table to product table
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-21-2002, 04:23 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
  •