修复语法错误和增加setTableName function

修复语法错误和增加setTableName function