自动生成的id显示 [英] autogenerated id display

查看:100
本文介绍了自动生成的id显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个员工表单,现在我想要做的是每当新员工填写表单时,自动生成的新ID应显示在文本框中。

can你帮我吗?

I have created a employee form and now i what i want to do is that whenever a new employee will come to fill the form the new id which is autogenerated should be displayed in textbox.
can u help me?

推荐答案

创建EmployeeDetails后显示自动生成ID,返回值和show.while填写表单时间本身你得到自动ID意味着---它使自动ID重复...在同一UI中工作的其他用户意味着自动ID将重复...
Show Auto Generation ID after creating EmployeeDetails ,return the value and show.while filling the form time itself u get auto ID means---it makes auto Id repeat...Other users working in same UI means auto id will repeat...


从表名中选择MAX(id)+1



使用它来获取ID
select MAX(id)+1 from Tablename

use this for getting ID


如何使用 GUID

你可以使用GUID轻松创建唯一的 id

http://www.techrepublic.com/article/generating-and-working-with-guids-in-net/5708732 [ ^ ]


这篇关于自动生成的id显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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