---
title: "字符串前面补0"
author: "nlslzf"
date: "2009-08-11T16:58:09Z"
tags: []
slug: "0"
draft: false
lastmod: "2009-08-11T16:58:09Z"
id: 444856
url: "https://nlslzf.iteye.com/blog/444856"
---

select   right('00000000000000000'+convert(varchar(50),fieldname),5)