开发者

How to autogenerate empid with string?

i am using vb.net2005 and ms sql server2005 i want source cod开发者_JS百科e for autogenerate the empid in my table . for example' sb1001'


The simplest answer to your question is:

      For x As Integer = 0 To dt.Rows.Count - 1
        dt.Rows(x)("emp_id") = "sb" & x
      Next

dt represents your datatable

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜