DbCacheDependency and table name

if i need to set DbCacheDependency on table i use sql-query

but it’ll be better to use CDbCacheDependency(‘table_name’); without writing long sql queries