search

Home  >  Q&A  >  body text

Modify the same field in the database form

For example

upload/vod/20180721/

upload/vod/20180720/

upload/vod/20180719/

...

are changed to

images/vod/20180721/

images/vod/20180720/

images/vod/20180719/

How to change it?


NigellusNigellus2327 days ago1050

reply all(2)I'll reply

  • 不愿将就

    不愿将就2018-07-23 09:57:21

    First use the explode function to adapt the string into an array, and then take the first subscript and change it, or use the substitution method. str_replace, check how to use it

    reply
    0
  • 若你能遇见他、

    若你能遇见他、2018-07-21 16:15:08

    update table name set field name ='modified value'

    reply
    0
  • Nigellus

    But the crux of the problem is that I just want to change the previous upload to images, but I don’t want to change the latter part.

    Nigellus · 2018-07-21 17:03:05
  • Cancelreply