SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot ShinoKage's Avatar
    Join Date
    Apr 2010
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Same Simple Questions, New Forum

    Okay, so I have a question that I know has a super easy answer, but I can't find it ^_^;

    All I need to know how to do is add a new column to a table (and how to delete a column from a table). That's it.

    I tried looking online and I tried looking in the book that I have in front of me. I've read too much in 3 days, I think my brain's just broken.

    Thanks in advance

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,192
    Mentioned
    17 Post(s)
    Tagged
    4 Thread(s)
    ALTER TABLE foo DROP bar
    ALTER TABLE foo ADD col VARCHAR(128) NOT NULL AFTER whatever

    the gist of it
    The only code I hate more than my own is everyone else's.

  3. #3
    SitePoint Zealot ShinoKage's Avatar
    Join Date
    Apr 2010
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, just like I figured, easy-peasy.

    Thank you


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
  •