标签:随机 exec 添加 app sel builder ring uil datetime
String dateNow= DateTime.Now.ToString("yyyyMMddhhmmss"+ new Random().Next(1, 99)); //随机数
StringBuilder sqlStr = new StringBuilder();
//1.添加年卡基础信息,获得自增ID
sqlStr.Append(" insert a set a.id=1; select @@IDENTITY " ,
//自增id
int num = int.Parse(Shove.Database.MySQL.ExecuteScalar(sqlStr.ToString()).ToString());
标签:随机 exec 添加 app sel builder ring uil datetime
原文地址:http://www.cnblogs.com/j2ee-web-01/p/7213868.html