Solved

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

Posted on 2010-09-13
11
2,384 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
oracle collections 2 40
Toad 12.10 Enterprise visual interface 4 44
Reference datasets inside PL/SQL cursor and dumping queried datasets 3 50
oracle forms question 9 39
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

738 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