No question at this time
DBA Top 10
1 M. Cadot 9300
2 B. Vroman 7100
3 A. Kavsek 4600
4 P. Wisse 2400
5 J. PĂ©ran 1700
6 J. Schnackenberg 1400
7 T. Boles 800
8 D. Dave 400
9 S. Spb 300
9 D. Johnson 300
About
DBA-Village
The DBA-Village forum
Forum as RSS
as RSS feed
Site Statistics
Ever registered users48613
Total active users1400
Act. users last 24h3
Act. users last hour0
Registered user hits last week107
Registered user hits last month432
Go up

extract result using substr function
Next thread: sql loader failing with date field
Prev thread: ORA-12547: TNS:lost contact

Message Score Author Date
Hi masters, i have one table which is containin...... javed akhtar Jun 03, 2021, 15:19
select substr( columnname , 1 ...... Score: 300 PtsScore: 300 PtsScore: 300 PtsScore: 300 PtsScore: 300 Pts David Johnson Jun 03, 2021, 16:03
thanks for quick help... javed akhtar Jun 04, 2021, 05:09

Follow up by mail Click here


Subject: extract result using substr function
Author: javed akhtar, India
Date: Jun 03, 2021, 15:19, 21 days ago
Os info: linix
Oracle info: 12c
Message: Hi masters,

i have one table which is containing the server name like,

PRODAIXDL1.ABC.COM
TSTAIXDL1.ABC.COM

DEVAIXKC2.ABC.COM
QAAIXKC3.ABC.COM

i want to fetch the values without domain name like

PRODAIXDL1
TSTAIXDL1
DEVAIXKC2
QAAIXKC3

thanks in advance.


Goto: Reply - Top of page 
If you think this item violates copyrights, please click here

Subject: Re: extract result using substr function
Author: David Johnson, United States
Date: Jun 03, 2021, 16:03, 21 days ago
Score:   Score: 300 PtsScore: 300 PtsScore: 300 PtsScore: 300 PtsScore: 300 Pts
Message: select substr( columnname
, 1
, instr( columnname || '.' , '.' ) - 1 )
from table_name ;
Your rating?: This reply is Good Excellent
Goto: Reply - Top of page 
If you think this item violates copyrights, please click here

Subject: Re: extract result using substr function
Author: javed akhtar, India
Date: Jun 04, 2021, 05:09, 21 days ago
Message: thanks for quick help
Your rating?: This reply is Good Excellent
Goto: Reply - Top of page 
If you think this item violates copyrights, please click here