nittu02 Posted January 16, 2008 Share Posted January 16, 2008 Hi, am using Oracle, And i need a biggg help from any of you DB Gurus. I have some values in a column in the DB, which goes something like this:[03-Jan-2008 21:53(GMT) Username] Test for notification[03-Jan-2008 21:53(GMT) Username] Initialization Each row will contain the first part [03-Jan-2008 21:53(GMT) Username] multiple times. My problem is that i need to remove this from the row while displaying, so that it will appear like this: Test for notificationInitialization How do i remove everything between the [ and ] ??? Link to comment Share on other sites More sharing options...
vinays84 Posted January 16, 2008 Share Posted January 16, 2008 Code:SUBSTR(dbColumn,INSTR(dbColumn,']',1,1)+2) Link to comment Share on other sites More sharing options...
nittu02 Posted January 17, 2008 Author Share Posted January 17, 2008 Thanks, but that will remove only the first ] right? I have multiple phrases like that.. Link to comment Share on other sites More sharing options...
vinays84 Posted January 17, 2008 Share Posted January 17, 2008 What does one value of the DB column look like?That means the value of that column for only one row. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now