问题描述
我希望 PDM 中的所有表、列和引用都生成为 sql 脚本中的小写值。
工具 > 模型选项 > 命名约定已将所有对象设置为小写,但由于某种原因,主键约束名称默认为大写。
菜单中是否有专门设置我缺少的主键的部分?
“表格预览”选项卡指示除键为小写外的所有内容
我不知道我缺少什么菜单选项我已经尝试了所有与模型设置相关的内容。
示例:
create table mtm_orders2customers (
objid SERIAL not null,entry_date DATE null,order_id INT4 null,customer_id INT4 null,payment_status VARCHAR(1000) null,order_status VARCHAR(500) null,order_total DECIMAL(12,2) null,tax_due DECIMAL(12,shipping_fee DECIMAL(12,constraint PK_MTM_ORDERS2CUSTOMERS primary key (objid)
);
解决方法
我尝试使用 Oracle 物理模型。
查看 DBMS,在 ORACLE Version 18c::Script\Objects\PKey\ConstName
下,我看到 PK_%.U27:TABLE%
。
如果我将其更改为 pk_%TABLE%
,我更接近于小写的主键约束名称。
与 ORACLE Version 18c::Script\Objects\Key\ConstName
相同。