数字从零开始 [英] Numbers beginnning with zero

查看:125
本文介绍了数字从零开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在数据库中添加一个以0开头的电话号码。我添加了0771234567.但是当我检索数字时,只有最后9个数字(771234567)。没有。我应该怎么办。我需要使用0771234567.

I need to add a telephone number begin with zero to a table in the database.I added 0771234567.But when I retrieve the numbers there are only last nine numbers(771234567).No zero.What should I do .I need to work with 0771234567.

推荐答案

通过数据库中的varchar更改电话号码数据类型
change the telephone number data type by varchar in your database


Hi Nishan,


请参阅以下链接以格式化数字。



格式数字显示 [ ^ ]
Hi Nishan,

Refer the below link to format numbers.

Format Number To Display[^]


我猜您将电话号码定义为整数。格式化时,前导零被丢弃。



让电话号码成为字符串更合适。
I guess you defined the phone numbers to be integer numbers. When formatted, the leading zeros are discarded.

It is more appropriate to let the phone numbers be character strings.


这篇关于数字从零开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆