前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

PowerBuilder only supports 18 decimal digits错误 - 学无止境的日志 - 网易博客 网易 新闻 微博 邮箱 相册 阅读 有道 摄影 爱拍 优惠券 云笔记 闪电邮 手机邮 印像派 网易识字 更多 博客 手机博客 博客搬家 博客VIP服务 LiveWriter写博 word写博 邮件写博 短信写博 群博客 博客油菜地 博客话题 博客热点 博客圈子 找朋友 发现 小组 风格 网易真人搭配社区iStyle 把最美的记录工具,装进你的口袋 >> 把最美的记录工具,装进你的口袋 >> 把最美的记录工具,装进你的口袋 >> 创建博客 登录 加关注 显示下一条 | 关闭 温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》 | 关闭 浪仔新博 一艺之成,当尽必生之力~~ 导航 首页 日志 相册 音乐 收藏 博友 关于我 日志 PowerBuilder only supports 18 decimal digits错误 2010-07-22 12:14:44| 分类: PB编程笔记 | 标签: |举报 |字号大中小 订阅 今天编写查询程序的时候,程序代码及数据窗口保存时均未提示错误,但运行程序后,点击查询按钮,提示 DataWindow Error Select error: Decimal conversion error. PowerBuilder only supports 18 decimal digits. 问题产生原因: Decimal是16bytes数据类型,大精度是18位,如果数据精度超过18位则会提示此错误。 在数据窗口中有金额和电话号码两列,数据窗口中对金额进行了SUM()操作,但在动态修改SQL语句时,在Select语句后的字段排序中,将金额与电话号码顺序进行了颠倒,造成本应对金额进行的SUM()操作变成了对电话号码的SUM()操作,汇总后的精度超过了18位,也就造成了PB提示此错误。 解决办法:将动态修改数据窗口语句中的两个字段进行调换 如为字段长度超过18位,修改字段长度即可 评论这张 转发至微博 转发至微博 阅读(1325)| 评论(0) | 分享到: 喜欢 推荐 0人 | 转载 历史上的今天 最近读者 热度 评论 this.p={ m:2, b:2, id:'fks_081065084085088075087084087095085080086068092085085066087', blogTitle:'PowerBuilder only supports 18 decimal digits错误', blogAbstract:'今天编写查询程序的时候,程序代码及数据窗口保存时均未提示错误,但运行程序后,点击查询按钮,提示\r\nDataWindow Error\r\nSelect error: Decimal conversion error. PowerBuilder only supports 18 decimal digits.\r\n问题产生原因:\r\nDecimal是16bytes数据类型,大精度是18位,如果数据精度超过18位则会提示此错误。\r\n在数据窗口中有金额和电话号码两列,数据窗口中对金额进行了SUM()操作,但在动态修改SQL语句时,在Select语句后的字段排序中,将金额与电话号码顺序进行了颠倒,造成本应对金额进行的SUM()操作变成了对电话号码的SUM()操作,汇总后的精度超过了18位,也就造成了PB提示此错误。', blogTag:'PowerBuilder,only,supports,18,pb', blogUrl:'blog/static/167783313201062211510523', isPublished:1, istop:false, type:0, modifyTime:1280650136940, publishTime:1279772084617, permalink:'blog/static/167783313201062211510523', commentCount:0, mainCommentCount:0, recommendCount:0, bsrk:-100, publisherId:0, recomBlogHome:false, currentRecomBlog:false, attachmentsFileIds:[], vote:{}, groupInfo:{}, friendstatus:'none', followstatus:'unFollow', pubSucc:'', visitorProvince:'', visitorCity:'', visitorNewUser:false, postAddInfo:{}, mset:'000', mcon:'', srk:-100, remindgoodnightblog:false, isBlackVisitor:false, isShowYodaoAd:false, hostIntro:'', hmcon:'1', selfRecomBlogCount:'0', lofter_single:'' } {list a as x} {if !!x} {if x.visitorName==visitor.userName} {else} {/if} {if x.moveFrom=='wap'} {elseif x.moveFrom=='iphone'} {elseif x.moveFrom=='android'} {elseif x.moveFrom=='mobile'} {/if} ${fn(x.visitorNickname,8)|escape} {/if} {/list} {if !!a} ${fn(a.nickname,8)|escape} ${a.selfIntro|escape}{if great260}${suplement}{/if} {/if} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} 推荐过这篇日志的人: {list a as x} {if !!x} ${fn(x.recommenderNickname,6)|escape} {/if} {/list} {if !!b&&b.length>0} 他们还推荐了: {list b as y} {if !!y} ·${y.recommendBlogTitle|escape} {/if} {/list} {/if} 转载记录: {list d as x} · ${x.referBlogTitle|escape} ${x.referUserName|escape} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.blogTile|default:""|escape} {/if} {/list} {list a as x} {if x_index>4}{break}{/if} {if !!x} ${fn1(x.title,60)|escape}${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')} {/if} {/list} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} {if !!(blogDetail.preBlogPermalink)} ${blogDetail.preBlogTitle|escape} {/if} {if !!(blogDetail.nextBlogPermalink)} ${blogDetail.nextBlogTitle|escape} {/if} {list a as x} {if !!x} {if x.publisherUsername==visitor.userName} {else} {/if} ${fn(x.publisherNickname,8)|escape} {/if} {/list} 被推荐日志 最新日志 该作者的其他文章 博主推荐 随机阅读 首页推荐 更多>> {list a as x} {if !!x} ${x.nickName|escape} 投票给 {var first_option = true;} {list x.voteDetailList as voteToOption} {if voteToOption==1} {if first_option==false},{/if} “${b[voteToOption_index]}” {/if} {/list} {if (x.role!="-1") },“我是${c[x.role]}” {/if} ${fn1(x.voteTime)} {if x.userName==''}{/if} {/if} {/list} 页脚 公司简介 - 联系方法 - 招聘信息 - 客户服务 - 隐私政策 - 博客风格 - 手机博客 - VIP博客 - 订阅此博客 网易公司版权所有 ©1997-2014 帮助 ${u} {list wl as x} ${x.g} {list x.l as y} ${y.n} {/list} {/list} {if defined('wl')} {list wl as x}${x.n}{/list} {/if}