Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Массово сгенерировать date_added


Recommended Posts

06d72f72-acee-4bba-a6e9-7a213803f67e.jpg.70458917871f651454570bec4b7e170a.jpg

 

Добрый день! Есть такая проблемка (после переезда с 1.5 на 3.0) date_added (в oc_product) в большинстве позиций 0000 значения. Подскажите, как изменить значения для нулевых, скажем на 2015-10-10 10:10:10?

 

UPDATE 'oc_product' SET 'date_added' = '2015-10-10 10:10:10' 

 

А как условия поставить, чтобы изменилось только для 0000 года скажем?) Спасибо.

Link to comment
Share on other sites


24.05.2023 в 14:44, Evgenius сказал:

UPDATE 'oc_product' SET 'date_added' = '2015-10-10 10:10:10' 

WHERE 'date_added' LIKE '%0000%'

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.