codice:
show table status like 'tabella'
fai un foreach sul risultato per vedere quello che ti interessa...