我们最近已从9.1d升级到oe rdbms 11.3版本。在生成时报告,我发现一个字段的字段值为2'239,00而不是2,239.00。我检查了格式>,>>>,>> 9.99。这可能是什么原因?
但是没有造成更大的伤害:
设置这些启动参数
-numsep 44 -numdec 46
这是一个简化的数据库启动示例,具有上面添加的参数:
proserve /db/db -H dbserver -S dbservice -numsep 44 -numdec 46
如果选择了错误的数字格式,则可以使用任何文本编辑器来编辑startup.pf。它应该看起来像这样:
#This is a placeholder startup.pf
#You may put any global startup parameters you desire
#in this file. They will be used by ALL Progress modules
#including the client, server, utilities, etc.
#
#The file dlc/prolang/locale.pf provides examples of
#settings for the different options that vary internationally.
#
#The directories under dlc/prolang contain examples of
#startup.pf settings appropriate to each region.
#For example, the file dlc/prolang/ger/german.pf shows
#settings that might be used in Germany.
#The file dlc/prolang/ger/geraus.pf gives example settings
#for German-speaking Austrians.
#
#Copy the file that seems appropriate for your region or language
#over this startup.pf. Edit the file to meet your needs.
#
# e.g. UNIX: cp /dlc/prolang/ger/geraus.pf /dlc/startup.pf
# e.g. DOS, WINDOWS: copy \dlc\prolang\ger\geraus.pf \dlc\startup.pf
#
# You may want to include these same settings in /dlc/ade.pf.
#
#If the directory for your region or language does not exist in
#dlc/prolang, please check that you have ordered AND installed the
#International component. The International component provides
#these directories and files.
#
-cpinternal ISO8859-1
-cpstream ISO8859-1
-cpcoll Basic
-cpcase Basic
-d mdy
-numsep 44
-numdec 46
对startup.pf文件的更改为GLOBAL-它们会影响在此计算机上启动的所有会话。如果只想更改一个会话,则可以将参数添加到命令行(或快捷方式图标属性)或本地.pf文件或该会话使用的ini文件中。
您还可以通过使用SESSION系统句柄以编程方式覆盖代码中的格式:
assign session:numeric-decimal-point = "." session:numeric-separator = "," . display 123456.999.
((如果这是临时更改,您可能要考虑保存当前值并还原它们。)(对于两种最常见的情况,您也可以使用简写形式:numeric-format =“ american”。或“ european”。]