0

i have read this article Select data from “show tables” MySQL query . But i need to get table from show tables. I try this syntax at the first.

show tables from pos where tables_in_pos like (select kdtk from toko)

and then the value has show

+-------------------+
| tables_in_pos |

+-------------------+
| fnpk |

after that i try this syntax

select * from concat(show tables from pos where tables_in_pos like (select kdtk from toko),'a') as Hasil

How to select table from syntax Show on mysql? without using Procedure.

Community
  • 1
  • 1
AKCode
  • 27
  • 8

1 Answers1

1

Use the query as follows,You need to include conditions in your query to get them the way you want:

SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='your DB_Name' AND........{additional conditions }....
Munees Majid
  • 747
  • 2
  • 8
  • 22