数据表生成model:
1.连接mysql
sqlacodegen mysql+cymysql://user:password@ip/database --tables tablename,tablename > file.py
2.连接oracle
sqlacodegen oracle+cx_oracle://user:password@ip:port/service_name --schema xxx --tables a,b > file.py
标签:tables,sqlalchemy,--,ip,file,mysql,oracle,使用指南 From: https://www.cnblogs.com/champaign/p/17231233.html