Solved

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

Posted on 2010-09-13
11
2,439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 77

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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 syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

695 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