日期:2014-05-17 浏览次数:20922 次
///读取流水码
private void GetMaxCode();
///批量导入
private void import()
{
///写入流水码
for(int i=0;i<=record;i++)
{
GetMaxCode();
private void insert();
}
}
insert table id values((select max(id) from table)+1)
private static object lockflag = new object();
private string GetMaxCode()
{
lock(lockflag)
{
return GetMyMaxCode();
}
}