开发者

How to autogenerate empid with string?

开发者 https://www.devze.com 2023-01-18 20:09 出处:网络
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:

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

精彩评论

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

关注公众号