델파이 7과 오라클에서 ADOQuery를 사용하고 있습니다. ADOQuery에 매개 변수를 전달하는 동안 오류가 발생합니다. 다음 라인을 사용했습니다. 오류를 식별하도록 도와주세요. 내가 쿼리를 열 때 나는 오류 다음 얻을 것이다ADOQuery 개체에 매개 변수를 전달하는 방법은 무엇입니까?
ADOQuery.Sql.text:= 'select * from temp_table '+
'where column1 in (select column from table2 where id=:id) and id=:id';
ADOQuery.Parameters.ParamByValue('id').value= 'abc';
ADOQuery.open;
:
당신은 두 개의 ID를 구별 할 필요가Parameter object is improperly defined. Inconsistent or incomplete information is provided.
마지막 쿼리 조건을 제거하면 올바르게 작동합니다. 'select * from temp_table where column1 in table2 from id = : id' – Nalu
2 "id"대신에 id1과 id2를 사용하십시오 – SimaWB