- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extract String with parentheses from DB
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 06:01 PM
тАО06-27-2004 06:01 PM
Extract String with parentheses from DB
I has been tried extract a Hebrew or English string that contain parentheses from table in Oracle DB and i got defective string that the parentheses are not in their original place.
anybody kmow the reason?
Thank's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 06:04 PM
тАО06-27-2004 06:04 PM
Re: Extract String with parentheses from DB
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 06:49 PM
тАО06-27-2004 06:49 PM
Re: Extract String with parentheses from DB
Statement s = con.createStatement();
ResultSet rs2 = s.executeQuery( "SELECT e.DESCRIPTION FROM equipment e,item i WHERE e.itemnum = i.itemnum and in2='Y' and i.itemnum='884841'" );
while (rs2.next()) {
System.out.println( "%%%%%%%%%%%%%% string=" +rs2.getString(1));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 07:07 PM
тАО06-27-2004 07:07 PM
Re: Extract String with parentheses from DB
It's not SQL. That's for sure.
Enjoy, Have FUN! H.Merijn [ who knows nothing about python ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 07:17 PM
тАО06-27-2004 07:17 PM
Re: Extract String with parentheses from DB
SELECT e.DESCRIPTION FROM equipment e,item i WHERE e.itemnum = i.itemnum and in2='Y' and i.itemnum='884841'
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 07:17 PM
тАО06-27-2004 07:17 PM
Re: Extract String with parentheses from DB
As far as i can see this is embedded sql.
Any result ? if yes, pls let us see for further examniation.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 09:24 PM
тАО06-27-2004 09:24 PM
Re: Extract String with parentheses from DB
is this VB?
anyway, can you post the output of "describe" at the sqlplus level of both tables?
we would get an idea of the datatype for the "description" field.
If possible, let us also have a glimpse of the following PLSQL block execution at the sqlplus prompt.
begin
for r1 in (SELECT e.DESCRIPTION FROM equipment e,item i WHERE e.itemnum = i.itemnum and in2='Y' and i.itemnum='884841') loop
dbms_output.put_line(r1.description);
end loop;
end;
regards
Yogeeraj
ps. don't forget to issue a "set serveroutput on" before executing this plsql block.