I have a trigger in a simple database, what I want that trigger to do is generate an id with characters and numbers, but it does not work.
I hope you can help me, I thank you very much.
As I see in your code, the ID you want to create requires: SYSDATE, USERNAME and PASSWORD. Why do you consult the database to obtain those values? You can get them in the trigger using NEW: [column] and with that build your id. If you notice, the error that appears is a "no data found". It makes sense because you are consulting with the select records of a table that I assume is empty. Even if I had records it would be wrong because if there are several records you can not use the "select .. into".