Skip to content
Advertisement

Find table name on the database using stored procedure on MySql 8.0.17

This is a list name of tables stored a database MySql version 8.0.17

The table name storage policy is

  • Table_
  • Western alphabet letter (issued by an algorithm that recognizes the connected user, privileges, etc.)_
  • Random number_
  • Month Number_
  • Current Year

I need find on the database MySql all the table for first Western alphabet letter without Random_number for this return

I have idea to use this Stored Procedure below but I just can’t extract first Western alphabet letter without Random number.

UPDATE

return of suggestion

Advertisement

Answer

Hmmm . . . I think this actually does what you want:

This interprets “first” as “first alphabetically”.

If you don’t want the digit, you can remove that:

Here is a db<>fiddle.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement