Solved

How can we print tick mark in SQL prompt using SELECT Statement

Posted on 2010-09-13
11
2,224 Views
Last Modified: 2013-12-19
How can we print tick mark in SQL prompt using SELECT Statement.like as i have attached image for refence.
TICK.bmp
0
Comment
Question by:ebizsupport
11 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 33661932
What tool/language?

using sql*plus, you can't display an image in the sql prompt.

Aside from displaying an image, what is your requirement?  We might be able to come up with a work-around.
0
 
LVL 11

Expert Comment

by:jgiordano
ID: 33662399
you can import your sql statement into a spreadsheet and run it from there. Then set up conditional formatting for certain conditions. such as highlighting cells, different text etc...

0
 
LVL 15

Expert Comment

by:Franck Pachot
ID: 33665453
Hi,
You can generate HTML with sqlplus, and have an <img href="http://filedb.experts-exchange.com/incoming/2010/09_w38/347427/TICK.bmp"/> in it.
Regards,
Franck.
0
 

Author Comment

by:ebizsupport
ID: 33669053
No,I I just want to print tick in SQL plus like
as we do for  select chr('188') from dual;
and output comes as 1/4

No I just want to print tick mark.
0
 
LVL 13

Expert Comment

by:riazpk
ID: 33669495
You can use chr(248) to print our the tick mark symbol but it is very small and may not be of any use to you.
You can use below code to generate ascii table:

declare

   i number;

   j number;

   k number;

begin

   for i in 2..15 loop

       for j in 1..16 loop

           k:=i*16+j;

           dbms_output.put_line((to_char(k,'000'))||':'||chr(k)||'  ');

       end loop;

   end loop;

end;

/

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 15

Expert Comment

by:Franck Pachot
ID: 33669532
Hi,

What is the database characterset ?
You can get it with:
select * from nls_database_parameters where parameter='NLS_CHARACTERSET'

Then are you sure that ascii code is 188 for the tick character in that character set ?

Regards,
Franck.
0
 

Author Comment

by:ebizsupport
ID: 33670118
The following is the character set

SQL> select * from nls_database_parameters where parameter='NLS_CHARACTERSET';

PARAMETER                      VALUE
------------------------------ ----------------------------------------
NLS_CHARACTERSET               WE8ISO8859P1

and
SQL> select chr(188) from dual;
C
-
¼

The above are the output is there any further suggetion,i will highly appreciate the effort.

0
 
LVL 15

Expert Comment

by:Franck Pachot
ID: 33670253
Hi,

In WE8ISO8859P1 the chr(188) is ¼:
http://en.wikipedia.org/wiki/ISO/IEC_8859-1

I don't think that you have the check mark 'tick' in WE8ISO8859P1

Regards,
Franck.
0
 

Author Comment

by:ebizsupport
ID: 33670765
So as your answer suggest that i have to set nls_lang character set as UTF-8 and after that i will be able to get the required output.
0
 
LVL 15

Accepted Solution

by:
Franck Pachot earned 250 total points
ID: 33672781
Hi,
I don't think that you can get characters that are not in the database characterset.
Regards,
Franck.
0
 

Author Closing Comment

by:ebizsupport
ID: 33679149
Not gor the proper solution just took a work around...
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now