如何选择大于14位的数字 [英] how to select number greater than 14 digit

查看:122
本文介绍了如何选择大于14位的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何从数据库中选择一个大于14位的数字
此选择命令返回错误

how i can select a number greater than 14 digit from database
this select command return error

command = "select NATIONAL_NUMBER from PG_STUD where NATIONAL_NUMBER=@na";
        db.cm.Parameters.Add("@na", nat);

推荐答案

您可以这样写

从PG_STUD中选择NATIONAL_NUMBER,其中NATIONAL_NUMBER> @na

如果出现任何错误,让我知道
You can write like this

select NATIONAL_NUMBER from PG_STUD where NATIONAL_NUMBER>@na

if any error came let me knw


谢谢,转换时出现错误:D
我忘了演员(nat)
谢谢:)
thank you , error in casting :D
i forget cast (nat)
thanks :)


这篇关于如何选择大于14位的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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