第一步,创建Model
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/57ed8eac265fa57767ac1b13171cff99.png)
点击Create Model或者File—>New Model
第二步
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/5ac89fdc7778da5ffcb95c73f01c5ef8.png)
选择Physical Data,然后在DBMS中选择你所需要的数据库
第三步
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fcba1eeb4b718507b1c8a4bd5749fbf0.png)
选择table创建table
双击你所创建的表
name是在PowerDesigner中会显示的名字,code是表名![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/09a56a76c529e905cbfae2e09ba9471c.png)
在columns中name是powerdesigner中显示的名(类似注释),code是表中字段名Data Type即为字段类型
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/b993af47deeecc3e3ae205fe5006fe3e.png)
点击preview或者右击表,选择SQL Preview将会显示sql语句
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/ab677e0b57dc7cd607b9452e2bb0f204.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/0e039b035f76d4c6179fbe2cc9364a86.png)
将sql语句粘贴到数据库的查询中即可生成相应的表