How to get last insert Id while using custom Execute('Insert Query')

Re: How to get last insert Id while using custom Execute('Insert Query')

by Mark Sharp -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Absolutely agree with this. The alternative is to use built-in PHP functions to do your extra-moodle DB work. e.g. PDO (https://www.php.net/manual/en/book.pdo.php) but this all sounds like extra work for not much reason.