on 08-17-2005 5:30 PM
Hi,
I use the JDBC Sender Adapter for getting data out of an oracle database and I my select out of an nonSAP system looks like this:
database:
hkey hdatajhz hdatam hdatat
1300234 2005 05 01
select XXXXX from <database>
where
hdatajhz||hdatam||hdatat = '20050501'
and substr(hkey,3,2) = '00'
Both statements doesent't work, why??
Regards
Christoph
did you test your SQL query with your database ?
I am not a Pro but i think the you cannot use <b>susbtr</b> in the where condition. I guess you need to use <b>LIKE</b> statement.
One other thing is <b>hdatajhz||hdatam||hdatat</b> it one field or you wanted to use as <b>OR</b> ? The SQL Query does not look right to me.
<b>
>> select XXXXX from <database>
>> where
>> hdatajhz||hdatam||hdatat = '20050501'
>> and substr(hkey,3,2) = '00'</b>
I think you should use table name instead of <b><database></b>
check the query using your SQL Plus or whatever the tool you are using to access the database.
regards
SKM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.