This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13851|Reply: 1

[Source] The length of SQL Server is not enough to autocomplete 0

[Copy link]
Posted on 4/23/2020 11:13:24 AM | | | |
Requirements: Since the id of the database was originally designed as an int type, it was later changed to an 8-bit varchar type, that is, the int was converted into a varchar type, and 0 should be added before the less than 8 bits.

For example: 123 becomes 00000123

The code is as follows:



The effect is as follows:








Previous:QA and its testing work
Next:C# Bulk manipulate .csproj project files
Posted on 4/27/2020 8:29:32 AM |
Thank you for sharing and learning haha
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com