select() function, query

조회 수: 12 (최근 30일)
Roman
Roman 2020년 11월 23일
편집: Walter Roberson 2023년 2월 7일
Hello together,
for the following select query statement I get an error:
"select Algo_ID from egs_pn_algos where Algo_Version like '%1.0%' and Algo_hyperparameter like '%th:32;min_p_s:0.12;w_s:250%'"
The error is:
Error using database.jdbc.connection/select (line 78)
Invalid SQL statement. Expected a single SQL SELECT statement.
Error in DatabaseHandler/select_query (line 162)
data = select(obj.connection, query_str);
This query worked for me in sql developer.
What am I doing wrong
  댓글 수: 5
Roman
Roman 2020년 11월 23일
Hello Rik.
you were right. I tried to avoid ';' and it worked perfectly.
Thanks for your quick help.
Ville Saunajoki
Ville Saunajoki 2023년 2월 7일
I encountered the same error message. I had sections of query commented with /* ... */ and by removing those it worked again.
Thanks for the tips.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by