Results 1 to 3 of 3

Thread: Update table

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2002
    Posts
    129

    Update table

    Hi there guys, I'm having some trouble and was wondering if anyone here could help me.

    I have a table named brochures and in that table i have 3 fields as follows

    name
    company
    address

    and now i also want a field for email

    is it possible to add it to the end or do i need to delete the whole table and remake it to include the email field? Pls help and thankyou for your time.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Update table

    You can add a field. All existing records will get the default value assigned.

    At least in MySQL.

    If you don't have a proper db manager, look into the ALTER TABLE statement.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Re: Update table

    As you're asking this in the PHP forum I'm assuming you've got PHP installed.
    I use phpMyAdmin to manage my mySQL databases. It's the only tool I use for that and it works great.
    Check it out!
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

Posting Permissions

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



Click Here to Expand Forum to Full Width