Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

[Решено] Поиск и замена в MySQL


 Share

Recommended Posts

Здравствуйте. Подскажите пж нужно поменять в заказах на другой ситус.

Меняю ик:

UPDATE oc_order SET order_status_id = REPLACE(order_status_id, '1', '15');

В админке показывает 53 товара с этим ситусом, а при выполнении запроса 63 http://prntscr.com/kduh5g

Что не правильно гделаю куда копать?

Спасипотому что! 

Link to comment
Share on other sites


1 минуту назад, nikifalex сказал:

вы придумали какой-то свой синиксис mysql 

Не подскажите правильный запрос?

Link to comment
Share on other sites


35 минут назад, chukcha сказал:

UPDATE table SET field = 'new_value' WHERE field = 'old_value'

А мне тот запрос потому чтольше понравился))

  • +1 1
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.