How can I execute a complex set of SQL commands at once with Database Toolbox?
이전 댓글 표시
I am using Database Toolbox to retrieve data from a Microsoft SQL Server. My query is very complex and can not be accomplished with a single SELECT statement. I have written a batch which I can execute from Query Analyzer; however when I use the EXEC command in MATLAB, no data is returned.
As a simple example, the following command
s = 'declare @id as int;set @id = 2;select * from testtbl where id = @id'
e=exec(conn,s)
e.Message
results in the message ERROR: No ResultSet was produced
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 DuckDB Native Interface에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!