示例: 脚本: from django.db import models# Create your models here. class Publisher(models.Model): name = models.CharField(max_length=32) def __str__(self): return self.name class Book(models.Model): name = models.CharField(max_length=32) pub = models.For…
数据库中的表导入到PowerDesigner中并转为excel文档 1.打开PowerDesigner12,在菜单中按照如下方式进行操作 file->Reverse Engineer->DataBase 点击后,弹出 New Physical Data Model 的对话框 2.在General选项卡中 Model name:模板名字,自己命名. DMBMS :根据需要选择,我选择的是ORACLEVersion 10g 点确定后弹出 Database Reverse Engineerin…