10 lines
266 B
MySQL
10 lines
266 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ledger_next`(OUT vNewBookEntry INT)
|
||
|
BEGIN
|
||
|
|
||
|
UPDATE vn.ledgerConfig SET lastBookEntry = LAST_INSERT_ID(lastBookEntry + 1);
|
||
|
SET vNewBookEntry = LAST_INSERT_ID();
|
||
|
|
||
|
END$$
|
||
|
DELIMITER ;
|