how to update a specific field(column) of a row by that row's autoincrement value with some prefix
        Posted  
        
            by I Like PHP
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by I Like PHP
        
        
        
        Published on 2010-05-26T09:27:23Z
        Indexed on 
            2010/05/26
            9:31 UTC
        
        
        Read the original article
        Hit count: 158
        
mysql-query
i have below table
  it_id     item_id     item_name   
    1   ite_1            shirt
    2   ite_10           pant
    3   ite_11           socks
    4   ite_12           shoes
    5   ite_13           belt
now i need to change item_id with with ite_(value of it_id of that row)
means if it_id=x then item_id should be ite_x and so on...
what will b sql query for that??
© Stack Overflow or respective owner