我在其中用的SQL语句排序没有作用,不知道什么原因,请帮忙?
SQL:select a.part_id,a.primary_procedure_id,a.procedure_seq,a.recipe_seq,d.description recipe_description
,a.called_procedure_id,a.recipe_id,a.stage,a.eqp_type,a.logical_ppid,a.logical_ppid_value
,b.parameter_name
,decode(b.parameter_name,null,'',pruncard.get_muti_parameter_value(a.lot_id,a.part_id,a.primary_procedure_id,a.called_procedure_id,a.recipe_id,b.parameter_name)) parameter_value
from lot_runcard a
,c_pro_rcsp b
,r_lot_lotx c
,c_pro_rcvn d
,c_pro_clpd e
where a.lot_id=c.lot_id
and a.lot_id=?
and a.recipe_id is not null
and a.recipe_id=b.recipe_id(+)
and a.recipe_id=d.recipe_name||'.'||lpad(d.recipe_ver,2,'0')
and SUBSTR(a.called_procedure_id,1,INSTR(a.called_procedure_id,'.')-1)=e.called_procedure_name
order by DECODE(e.procedure_type,'A',1,'R',2,'N',3),a.procedure_seq,a.recipe_seq
SQL:select a.part_id,a.primary_procedure_id,a.procedure_seq,a.recipe_seq,d.description recipe_description
,a.called_procedure_id,a.recipe_id,a.stage,a.eqp_type,a.logical_ppid,a.logical_ppid_value
,b.parameter_name
,decode(b.parameter_name,null,'',pruncard.get_muti_parameter_value(a.lot_id,a.part_id,a.primary_procedure_id,a.called_procedure_id,a.recipe_id,b.parameter_name)) parameter_value
from lot_runcard a
,c_pro_rcsp b
,r_lot_lotx c
,c_pro_rcvn d
,c_pro_clpd e
where a.lot_id=c.lot_id
and a.lot_id=?
and a.recipe_id is not null
and a.recipe_id=b.recipe_id(+)
and a.recipe_id=d.recipe_name||'.'||lpad(d.recipe_ver,2,'0')
and SUBSTR(a.called_procedure_id,1,INSTR(a.called_procedure_id,'.')-1)=e.called_procedure_name
order by DECODE(e.procedure_type,'A',1,'R',2,'N',3),a.procedure_seq,a.recipe_seq
解决方案 »
- 郁闷了很久的一个问题,关于VB.Net中的TreeView
- 100分寻高手指导!!!!"用水晶报表设计的报表换了台机器无法使用" 在线等!!!!
- MDI窗口的子窗口问题
- 关于ADO分级显示的问题。
- 帮帮我吧,救急
- 请问怎样使一个窗体停留10秒钟,然后再自动消失。
- WINSOSCK问题!为什么这个程序在单网卡的机器上就可以正常运行,但是在双网卡的机器上就不能正常运行呢?
- 怎样获得鼠标双击事件?
- 各位同仁,深圳哪家公司需要程序员?
- 计算机--网上邻居--添加网上邻居--浏览,出现的浏览对话框,是哪个api函数?
- 在线等待:一个程序窗体,没有HWND属性,又没有VISIBLE属性,如何使它隐藏?
- 如何vb将文本文件导入到数据库中?谢谢
有消息,再告诉你。
SELECT *
FROM table1
ORDER BY table1.field1 默认升序
where ......