修改订单日期.sql 921 B

12345678910111213141516171819
  1. use [db]
  2. update dindan set time1 = replace(time1, '2016-03-26', '2016-03-25'),
  3. time2 = replace(time2, '2016-03-26', '2016-03-25'),
  4. time4 = replace(time4, '2016-03-26', '2016-03-25'),
  5. time5 = replace(time5, '2016-03-26', '2016-03-25'),
  6. time6 = replace(time6, '2016-03-26', '2016-03-25')
  7. where id like '20160326%'
  8. update dindanjd set date = replace(date, '2016-03-26', '2016-03-25'),
  9. bookingdate = replace(bookingdate, '2016-03-26', '2016-03-25') where id like '20160326%'
  10. update dindansp set date3 = replace(date3, '2016-03-26', '2016-03-25'),date4 = replace(date4, '2016-03-26', '2016-03-25') where id like '20160326%'
  11. update dindansp2 set date = replace(date, '2016-03-26', '2016-03-25') where id like '20160326%'
  12. update dindanbukuan set date = replace(date, '2016-03-26', '2016-03-25') where id like '20160326%'
  13. update dindanbukuan2 set date = replace(date, '2016-03-26', '2016-03-25') where id like '20160326%'