标签:
c#
.net
mysql
entity-framework
mysql-connector
我有以下存储过程:
CREATE PROCEDURE GetSequenceNextValue(IN sequenceName VarChar(100))
BEGIN
UPDATE Sequences Set currentValue = LAST_INSERT_ID(CurrentValue + 1) WHERE name = sequenceName
SELECT LAST_INSERT_ID();
END