Heim  >  Fragen und Antworten  >  Hauptteil

Ändern Sie dasselbe Feld im Datenbankformular

Zum Beispiel:

upload/vod/20180721/

upload/vod/20180720/

upload/vod/20180719/

...

werden alle geändert in.

images/vod/2018 21.07.

images/vod/20180720/

images/vod/20180719/

Wie kann ich es ändern?


NigellusNigellus2282 Tage vor1015

Antworte allen(2)Ich werde antworten

  • 不愿将就

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

    先用explode函数把字符串改编成数组,然后取第一个下标改,或者用替换法。str_replace,查查怎么用

    Antwort
    0
  • 若你能遇见他、

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

    update 表名 set 字段名 ='修改的值'

    Antwort
    0
  • Nigellus

    但问题的关键是我只想把前面的upload改成images ,后面的我不动

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