I want to select all those tables which tables name contain another field name
Like
Show Tables Like '%' + table.table_name_prefex
but this give me an error below.
[Err] 1064 - You have an error in your SQL syntax; check themanual that corresponds to your MySQL server version for the right
syntax to use near ‘+table.table_name_prfex’ at line 1
Kind of suggests either a very clever or a very dumb schema.
You can’t do this with ‘SHOW’ – as Haim Evgi (POST deleted) said you’ll need to use the information schema.
So just do a join….
If your table really is called table then you need to enclose it in back quotes.