have primary table placeholder?


$result = Node::model()->getDbConnection()->createCommand('TRUNCATE TABLE {{Node}}')->execute();

above code can work~

but, {{Node}} is hard code, is not nice~

if can afford primary table placeholder, it will be better~

look like:


$result = Node::model()->getDbConnection()->createCommand('TRUNCATE TABLE <sponsor>')->execute();

顶一下~