def from_table(table, engine, limit=None, **kwargs):
sql = select([table])<EOL>if limit is not None:<EOL><INDENT>sql = sql.limit(limit)<EOL><DEDENT>result_proxy = engine.execute(sql, **kwargs)<EOL>return from_db_cursor(result_proxy.cursor)<EOL>
Select data in a database table and put into prettytable.

Create a :class:`prettytable.PrettyTable` from :class:`sqlalchemy.Table`.

:type table: Table
:param table: a ``sqlalchemy.sql.schema.Table`` object

:type engine: Engine
:param engine: the engine or session used to execute the query.

:type limit: int
:param limit: int, limit rows to return.

:rtype: PrettyTable

**中文文档**

将数据表中的数据放入 PrettyTable 中.