---
title: "PowerDesigner:key constraint name"
author: "dhl004"
date: "2012-03-08T14:31:56Z"
tags: ["powerdesigner"]
categories: ["开源软件"]
slug: "powerdesigner-key-constraint-name"
draft: false
lastmod: "2012-03-08T14:31:56Z"
id: 1446351
url: "https://dhl004.iteye.com/blog/1446351"
---

Power Designer:key constraint name

版本：11
一。通过调整以下两个参数，
    菜单：Database=>Edit current DBMS
PGSQL73::ScriptObjectsMaxConstLen
value=>255
PGSQL73::ScriptObjectsTableMaxlen 
value=>255
可以避免在生成sql时的错误:
Reference constraint name maximum length is limited to 7 characters
Key constraint name maximum length is limited to 7 characters
Table code maximum length
这个问题很有普遍性，公司三四个同事都遇到，因没有做笔记，而且这个设置比较隐蔽，很快就忘记，所以每次都花了好长时间才找回设置的地方，为此，做下笔记，并特意把错误提示信息也写上，方便搜索。