search

Home  >  Q&A  >  body text

mysql - Modify the isbn data of the database so that if the isbn encoding is normal, it will not change. If it exceeds 13 digits, the first 13 digits will be taken directly. How should I write the sql statement?

ringa_leeringa_lee2833 days ago669

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-18 10:52:27

    Query: select substr(isbn,0,13) from table

    Modification: update table set isbn = substr(isbn,0,13)

    reply
    0
  • Cancelreply