This potentially might be too large of a question for a complete solution, and I've got a bit of a strange set up. I'm using HP OO to create a text-based RPG just to practice getting used to database design on this platform.
So it's basically a flow script that runs once. When the script starts, a player (user) is created, and then a character is created. The player inputs a name for its character, and this is stored in the character
table. I then call that character name with SELECT name FROM character WHERE character.character_id=x
. How can I retrieve the name from the correct (most recently created) character. The character_id
is an auto-incrementing identity column.