Update Oracle Insertable

This commit is contained in:
sunkaixuan
2020-09-26 13:45:18 +08:00
parent 86a8a3afb2
commit cfd8e04eb1

View File

@@ -87,7 +87,14 @@ namespace SqlSugar
batchInsetrSql.AppendLine(") ");
}
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
if (identities.HasValue())
{
batchInsetrSql.AppendLine("SELECT "+ (this.OracleSeqInfoList.First().Value-1) + " FROM DUAL");
}
else
{
batchInsetrSql.AppendLine("SELECT 1 FROM DUAL");
}
var result= batchInsetrSql.ToString();
return result;
}