PowerDesigner的CDM转PDM时的自动命名规则的疑问?

howtimeflys 2008-11-26 03:13:48
大家有用过PowerDesigner的CDM转PDM功能吗?我想问个问题,就是在从CDM转PDM的过程中,外键引用的的命名方式默认是这样的FK_%.U8:CHILD%_%.U9:REFR%_%.U8:PARENT%,像U8这种语法是取变量的前8个字符,如果我从变量的第4个字符开始连续取8个字符,请问这种语法如何设置?
...全文
198 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yonghengdizhen 2008-11-26
  • 打赏
  • 举报
回复
可以看出,没有能达到你要求的写法
yonghengdizhen 2008-11-26
  • 打赏
  • 举报
回复
Variables have a syntax that can force a format on their values. Typical uses are as follows:

?Force values to lowercase or uppercase characters
?Truncate the length of values
?Enquote text

You embed formatting options in variable syntax as follows:

%[[?][-][width][.[-]precision][c][H][F][U|L][T][M][q][Q]:]<varname>%

The variable formatting options are the following:

Format option Description
? Mandatory field, if a null value is returned the translate call fails
n (where n is an integer) Blanks or zeros added to the right to fill the width and justify the output to the left
-n Blanks or zeros added to the left to fill the width and justify the output to the right
width Copies the specified minimum number of characters to the output buffer
.[-]precision Copies the specified maximum number of characters to the output buffer
.L Lower-case characters
.U Upper-case characters
.F Combined with L and U, applies conversion to first character
.T Leading and trailing white space trimmed from the variable
.H Converts number to hexadecimal
.c Upper-case first letter and lower-case next letters
.n Truncates to n first characters
.-n Truncates to n last characters
M Extracts a portion of the variable name, this option uses the width and precision parameters to identify the portion to extract
q Enquotes the variable (single quotes)
Q Enquotes the variable (double quotes)

17,378

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧