Topic: SQL*Plus and PL/SQL >> how to get the value
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: how to get the value |
| Neeraj |
Posted: Feb 14, 2008 04:23:30 AM |
Total Post: 258
Joined: Jan, 2007
|
hi,
tell me how to get value after decimal like
33.198 then
result shuld be 198
check also if last digit is 0
33.190 --> 190
thxs |
|
|
arun |
| Posted: Feb 14, 2008 07:18:03 AM | |
|
Total Post: 28
Joined: Sep, 2007
|
Try this example query
select substr('99.200',instr('99.200','.')+1,length(99.200)) from dual
/
|
|
|
|
|
Neeraj |
| Posted: Feb 15, 2008 12:04:26 AM | |
|
Total Post: 258
Joined: Jan, 2007
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Vinoth Kumar | 364 |
| Gopu Gopi | 340 |
| Gitesh Trivedi | 322 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|