Dim n As Integer = Rand.Next(999999)
Dim s As String = CStr(Format(n, "000000"))
Output.Show(s)
Dim n1 As Integer = Rand.Next(999)
Dim n2 As Integer = Rand.Next(999)
Dim s1 As String = CStr(Format(n1, "000")) & CStr(Format(n2, "000"))
Output.Show(s1)
问题二:通过网路监视器HttpRequest执行以下函数增加订单,增加订单函数中订单编号采用SQLCommand方法先判断是否有最大号,如果有+1递增,问题是高并发情况下是否有重号的可能?如果有,麻烦提供解决方案,谢谢!
Functions.AsyncExecute("增加订单",e)