PLEASE Help, Mysql question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeroman
    So Fucking Banned
    • Oct 2002
    • 356

    #1

    PLEASE Help, Mysql question

    I need to "empty" a field within a table.
    How do I do that ? (truncet)

    I can empty the table itself but there's
    20 other fields I don't want to "empty"
  • DrGuile
    Confirmed User
    • Jan 2002
    • 2025

    #2
    probably not the best way... but

    update <tablename>
    set <fieldname> = ""

    if that doesnt work, add

    where 1 = 1
    LiveBucks / Privatefeeds - Giving you money since 1999
    Up to 50% Commission!
    25% Webmaster Referal
    Powered by Gamma

    Comment

    • Stud Money
      So Fucking Banned
      • Sep 2003
      • 3214

      #3
      Could ya not drop the field from the table then re-add it?

      Comment

      • Babaganoosh
        ♥♥♥ Likes Hugs ♥♥♥
        • Nov 2001
        • 15841

        #4
        UPDATE whatever SET field='' WHERE field !='';
        I like pie.

        Comment

        Working...