sql replace a column/row in one time ?

Results 1 to 7 of 7
  1. #1
    son, i am disappointed Squashing is offline
    Grand MasterRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    sql replace a column/row in one time ?

    Hi

    I would like to change in table furniture in colum stack_height. I would like to change the value 0.1 to 1

    Wich sql should I use?


  2. #2
    Member Miller is offline
    MemberRank
    Feb 2014 Join Date
    SacramentoLocation
    28Posts

    Re: sql replace a column/row in one time ?

    Use Navicat and edit the column in 'Table Design'.

  3. #3
    That one pokemon thing Luxray is offline
    Grand MasterRank
    Apr 2010 Join Date
    2,043Posts

    Re: sql replace a column/row in one time ?

    UPDATE furniture SET stack_heigth = 1;

    add WHERE stack_height = 0.1 at the end if it matters.

  4. #4
    son, i am disappointed Squashing is offline
    Grand MasterRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: sql replace a column/row in one time ?

    Quote Originally Posted by Zoldyck View Post
    UPDATE furniture SET stack_heigth = 1;
    thankyou

  5. #5
    That one pokemon thing Luxray is offline
    Grand MasterRank
    Apr 2010 Join Date
    2,043Posts

    Re: sql replace a column/row in one time ?

    Quote Originally Posted by Squashing View Post
    I don't want all stack_height to be 1. Only the one that have the value of 0.1
    Editted my post.

  6. #6
    son, i am disappointed Squashing is offline
    Grand MasterRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: sql replace a column/row in one time ?

    Quote Originally Posted by Zoldyck View Post
    Editted my post.
    Thankyou so this will be it:

    UPDATE furniture SET stack_heigth = 1 WHERE stack_height = 0.1;

  7. #7
    That one pokemon thing Luxray is offline
    Grand MasterRank
    Apr 2010 Join Date
    2,043Posts

    Re: sql replace a column/row in one time ?

    Quote Originally Posted by Squashing View Post
    Thankyou so this will be it:

    UPDATE furniture SET stack_heigth = 1 WHERE stack_height = 0.1;
    Exactly



Advertisement