首页 > 新闻中心 > 技术百科

mysql怎么设置字段的格式化 返回列表

网络2023-08-27 00:00:00编辑发布,已经有个小可爱看过这篇文章啦

mysql设置字段格式化的示例:

比如将mysql格式化某字段为0001

sql语句:

update table set pieceNumber = LPAD(pieceNumber, 4, 0)

意思:在table表中格式化pieceNumber字段为0001。

《mysql怎么设置字段的格式化》来自互联网同行内容,若有侵权,请联系我们删除!

  • 互联网
  • img
  • src
  • mysql
  • aliyucs
  • hongkong
  • cn
  • space
  • oss
  • gz

热门新闻

来电咨询