为什么不能为0命令= Sell_price!= 0;评估为错误?

问题描述 投票:-3回答:1
oracle plsql oracle10g
1个回答
1
投票

您需要create table包含所有提到的列。

[sell_price列必须为not null,并且不允许在其中输入0。

因此必须是:

Create table product_master
( 
...
...
Sell_price number(8,2) not null check(Sell_price <> 0), -- not null and check will be required in your case
..
);

干杯!

© www.soinside.com 2019 - 2024. All rights reserved.