标题:谁知道这脚本是什么意思?谁就是大师级别!并且解释一下
只看楼主
yangzeng
Rank: 1
等 级:新手上路
威 望:1
帖 子:277
专家分:0
注 册:2008-4-23
结帖率:100%
 问题点数:0 回复次数:10 
谁知道这脚本是什么意思?谁就是大师级别!并且解释一下
select                                                                                                      
    ''                                                                                               item41  
   , decode(a.shiage_tenkai,'1','disabled','5','disabled','')                                        item37  
   , decode(decode(b.s_seihin_kb,'s',a.press_tenkai,a.shiage_tenkai),'0','未展開','2','未展開','1','展開済','5','展開済','3','展開','未展開') item42  
   , b.hinmei                                                                                        item43  
   , nvl(decode(upper(b.tatene_shiji_tani),'x',b.jutyu_butsuryo , b.juchu_suryo) ,0)                 item44  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item45  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item47  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item49  
   , '手動引当'                                                                                      item50  
   , ''                                                                                              item60  
   , decode( b.s_seihin_kb, 'm', nvl(hin.seizouhinmei,' '),                                                  
             nvl(a.shiage_seizouhinmei, siage.shiage_seizouhinmei)                                          
           )                                                                                         item61  
   , decode( b.s_seihin_kb, 'm', nvl(hin.pack_hin    ,' '),                                                  
             nvl(a.shiage_pack_hinmei, siage.shiage_pack_hin)                                                
           )                                                                                         item188
   , nvl(a.shiage_torisu     ,siage.shiage_kite_kom    )                                             item62  
   , decode( b.s_seihin_kb, 's', nvl(hin.seizouhinmei,' '),                                                  
             nvl(a.press_seizouhinmei,press.press_seizouhinmei)                                             
           )                                                                                         item63  
   , decode( b.s_seihin_kb, 's', nvl(hin.pack_hin    ,' '),                                                  
             nvl(a.press_pack_hinmei , press.press_pack_hin)                                                
           )                                                                                         item189
   , nvl( a.press_teijaku_size, press.press_kite_kom )                                               item64  
   , nvl(a.shiage_tenkai_hitsuyo , nvl(decode(upper(b.tatene_shiji_tani),'x',b.tehaibutsuryou , b.tehaisuryo) ,0))        item65  
   , nvl(a.shiage_tenkai_hitsuyo_tani,decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )) item66  
   , 'プレス展開'                                                                                    item67  
   , to_char(a.shiage_tonyu_ymd,'yy/mm/dd')                                                          item68  
   , a.press_hitsuyo                                                                                 item69  
   , nvl(a.press_hitsuyo_tani ,decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku ))        item70  
   , '仕上展開'                                                                                      item71  
   , to_char( decode( a.press_ymd, null, b.noki_base_press_ymd,                                             
                decode( sign(to_char(a.press_ymd,'hh24mi')-'0800'),-1,a.press_ymd-1,a.press_ymd )            
                      ), 'rr/mm/dd' )                                                                item72  
   , a.press_kai                                                                                     item73  
   , nvl(a.press_jikan,'08:00')                                                                      item74  
   , nvl( a.press_setsubiname , press.press_setsubiname )                                            item75  
   , nvl( a.press_teijaku_size, press.press_kite_kom    )                                            item76  
   , to_char(a.tokou_yokyuu_ymd,'yy/mm/dd hh24:mi')                                                  item77  
   , to_char(a.tokou_press_ymd,'yy/mm/dd')                                                           item78  
   , b.ukeban                                                                                        item79  
   , b.chumonnushi                                                                                   item80  
   , decode(nvl(b.noki,''),'','',decode(sign(to_number(substr(b.noki,length(b.noki)-1))-31),1, substr(b.noki,3,2)||'/'||substr(b.noki,5,2)||'/'||substr(b.noki,length(b.noki)-1),to_char(to_date(b.noki,'yyyy/mm/dd'),'yy/mm/dd'))) item81  
   , to_char(b.uketsuke_ymd,'yy/mm/dd')                                                              item82  
   , '0'                                                                                             item83  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item84  
   , nvl(0,0)                                                                                        item85  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item86  
   , nvl(0,0)                                                                                        item87  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item88  
   , ''                                                                                              item89  
   , decode(upper(b.tatene_shiji_tani), 'x' , b.butsuryoutaniryaku , b.suryotaniryaku )              item90
搜索更多相关主题的帖子: 脚本 大师 级别 解释 
2008-09-03 17:19
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
这个是SQL语句?还有日文...
某些函数还是很好理解的substr是去字符串应该类似于ASP的MID函数
upper是将小写字母转换为大写字母
sign是单精度浮点数的意思这个数据类型在ASP里也有
to_char就是将表达式转换为单字符
to_number转换为数字
decode和nvl不太清楚了
decode字面理解是解码的意思,不明白这里要解什么码?
'yy/mm/dd'这个明显是日期格式的字符串
2008-09-03 20:47
yangzeng
Rank: 1
等 级:新手上路
威 望:1
帖 子:277
专家分:0
注 册:2008-4-23
得分:0 
decode和nvl
这两不会是表名吧
2008-09-03 20:55
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
[bo][un]yangzeng[/un] 在 2008-9-3 20:55 的发言:[/bo]

decode和nvl
这两不会是表名吧

个人觉得应该不是表名
2008-09-04 00:08
anlige
Rank: 3Rank: 3
等 级:新手上路
威 望:7
帖 子:401
专家分:0
注 册:2006-11-3
得分:0 
我就不当大师了~哎~~

http://www.
zhanghuiguoanlige@
2008-09-04 00:38
yangzeng
Rank: 1
等 级:新手上路
威 望:1
帖 子:277
专家分:0
注 册:2008-4-23
得分:0 
哈哈!只要有心中的梦想,以后就会成大师的,哈哈
anlige不要灰心哟
2008-09-04 07:15
sunfishy
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:311
专家分:163
注 册:2007-6-29
得分:0 
....

2008-09-04 08:22
yangzeng
Rank: 1
等 级:新手上路
威 望:1
帖 子:277
专家分:0
注 册:2008-4-23
得分:0 
哈哈
2008-09-04 09:28
awke002
Rank: 2
等 级:论坛游民
帖 子:201
专家分:55
注 册:2008-7-22
得分:0 
2008-09-06 09:54
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
得分:0 
好久没写程序了,看得头大

http://www./
2008-09-06 10:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-231221-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.416831 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved