需要改变结果 [英] Need to change the result
本文介绍了需要改变结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI ALL
请找到以下查询
HI ALL
Pls find the below query
select * from table_name
我得到的输出为1,2,3,4
但是我需要输出为01,02,03,04
任何人都可以有一个主意.
Rgds
Jagadesh
i am getting the output as 1,2,3,4
But i need the output as 01,02,03,04
Can anyone have an idea.
Rgds
Jagadesh
推荐答案
您将"Oracle"写为标记,因此我假设您可以使用PLSQL/存储过程来实现此目的.
因此,这是我的第一拳链接:http://translate.google.at/translate?hl=de&langpair=de%7Cen&u=http://www.datenbank-plsql.de/(对不起,最初是德语)...
更新:这里我发现了一些有趣的东西:
You write "Oracle" as tag, so I assume you could use PLSQL / a stored procedure to achieve this.
So here is my fist link: http://translate.google.at/translate?hl=de&langpair=de%7Cen&u=http://www.datenbank-plsql.de/ (Sorry, it''s originally in German) ...
UPDATE: HERE I found something interesting:
Oracle:
SELECT ''0'' || a, ''0'' || b, ''0'' || c ,''0'' || d FROM table_name
应该工作
should work
这篇关于需要改变结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文