christa Posted April 8, 2010 Share Posted April 8, 2010 good day! I use mysql v4.1.x and, via php script, i want to execute this query: SHOW TABLE STATUS WHERE Name IN ('mytab', 'anothertab, '1234_tab') But, the syntax that works in 4.1 is: SHOW TABLE STATUS LIKE 'mytab' How can i check more tables? Quote Link to comment https://forums.phpfreaks.com/topic/197973-show-table-status-in-41/ Share on other sites More sharing options...
Mchl Posted April 8, 2010 Share Posted April 8, 2010 Unless you can find a LIKE pattern for them, you can. In your example: SHOW TABLE STATUS LIKE '%tab'; will show all tables that end with 'tab'. Remember, 4.1 is no longer supported. High time to upgrade. Quote Link to comment https://forums.phpfreaks.com/topic/197973-show-table-status-in-41/#findComment-1038876 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.