在实现持久层中工具的应用(2)

 

 

ü         修改E-R模型,同步数据库

新增字段EMAIL

 e-r

选择菜单Database>Modify Database..,弹出Database Modification对话框, 并按确定后执行画面如下:(注意如果要直接生成到DB中, 则应选择ODBC generation选项)

 

 database modification

 

database synchronization

 

ü         POWERDESIGN中的执行日志:

Database Generation

Generation: Check model starting...

Generation: Check model successful.

Sorting objects...

Sort completed.

Script Generation...

Dropping Indexes...

-> Index: PRIMARY (PRIMARY)

Dropping Tables...

-> Dropping columns of the table user (user)...

Creating Tables...

-> Creating columns of the table user (user)...

-> Column: email (email)

-> Creating indexes of the table user (user)...

Dropping Indexes...

Dropping Tables...

Creating Tables...

Script Generation completed

Generation successful

 

Usage:

  (1) Start command prompt

  (2) Go to the directory D:/project-src/hibernate-workspace/document/

  (3) Start the SQL interpreter:

        mysql.exe

  (4) Run the database creation script:

        mysql> source crebas.sql

Modification of database successful

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值