If your table is rendered using theme()
function like theme_table('table')
, you can preprocess it from your theme function.
For theme_table()
you can add class to every table like this in template.php
of your theme.
function my_theme_preprocess_table(&$variables) {
$variables['attributes']['class'][] = 'table';
}