MySQL Shell get_auto_increment_value() method — Python mode
These days, I mostly program in PHP with MySQL as the database, which is just fine by me. I have had a long-time interest in MySQL (SQL in general), and after several steady months of programming in PHP, I must say I have really come into the language and developed a fondness for it. All that being said, I still enjoy using and learning the MySQL Shell in Python mode. As Database Developers, we often need the LAST INSERT ID
value from a previous INSERT
statement on a column that has the AUTO_INCREMENT
attribute. MySQL Shell has a…