I would like to update value in productcatergory from bike to bikes in id 1 (row)
mysql> select * from productsale; +----+------------------+--------+------------------+--------------+-------------+-------------+-----------+------------+ | id | productcatergory | color | productname | standardcost | dealerprice | salesamount | taxamount | orderdate | +----+------------------+--------+------------------+--------------+-------------+-------------+--------- | 1 | bike | yellow | road-550-w,38 | 413 | 419 | 699 | 56 | 2015-05-25 | | 2 | bikes | black | Road-650,58 | 413 | 419 | 699 | 56 | 2015-05-10 | | 3 | components | black | HL Road Frame,44 | 413 | 419 | 699 | 56 | 2015-04-29 | +----+------------------+--------+------------------+--------------+-------------+-------------+--------- kindly help me how to do?
UPDATEwithWHERE id=1. But your question might actually be something more than just I want to updatebiketobikesin id 1.. Maybe something like How do I find all Id that have almost similar value likebikeandbikesand update them tobikesor all id with almost similar value likecomponentandcomponentsand update them all tocomponentswithout having to search and update one by one? .. .then that's a different question altogether..