创建具有最大行数的表(ORACLE) [英] Creating a table with max number of rows (ORACLE)
本文介绍了创建具有最大行数的表(ORACLE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Oracle中创建表时,是否有任何方式限制最大行数?
Is there any way to limit the maximum number of rows when I create a table in Oracle?
推荐答案
有一个数字键,您可以添加一个检查约束,声明该键不超过一个特定的值:
If the table has a numeric key, you could add a check constraint that states that the key does not exceed a specific value:
ALTER TABLE turnip
ADD CONSTRAINT check_turnip_id
CHECK (turnip_id <= 50)
/
这篇关于创建具有最大行数的表(ORACLE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文