sqlfind() function not found
    조회 수: 8 (최근 30일)
  
       이전 댓글 표시
    
Hi everyone,
I would like to see the table names available and column names within those tables for an sqlite database stored as 'mydb.db', by using the MATLAB interface for sqlite. I read that sqlfind() has this functionality, but the function is not being recognized by my MATLAB (having installed the 'database toolbox' extension).
Is it possible to use this function without installing a JDBC driver? Or is there an alternative for the MATLAB interface to SQLite?
Thank you in advance for your help!
댓글 수: 1
  Walter Roberson
      
      
 2020년 12월 20일
				Hmmm, sqlfind() should be present if you have the Database Toolbox installed and licensed, R2018a or later.
Are you able to use other functions from the Database Toolbox ?
답변 (2개)
  Gouri Chennuru
    
 2020년 12월 27일
        I would recommend you to check whether the database toolbox is installed correctly or not by executing ver command in MATLAB command prompt.
You can refer to product requirements of database toolbox whether all the requirements and make sure all are available in your MATLAB.
Hope this Helps!
댓글 수: 0
  Pranav
 2023년 7월 18일
        Hi, 
I am using MATLAB 2020b and have the same problem - 'Unrecognised function or variables 'sqlfind''. Any ideas what the issue might be?
MATLAB Version: 9.9.0.2037887 (R2020b) Update 8
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 19044)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB                                                Version 9.9         (R2020b)
Database Toolbox                                      Version 10.0        (R2020b)
Datafeed Toolbox                                      Version 5.9.2       (R2020b)
Financial Toolbox                                     Version 6.0         (R2020b)
MATLAB Compiler                                       Version 8.1         (R2020b)
MATLAB Compiler SDK                                   Version 6.9         (R2020b)
Optimization Toolbox                                  Version 9.0         (R2020b)
Parallel Computing Toolbox                            Version 7.3         (R2020b)
Spreadsheet Link                                      Version 3.4.4       (R2020b)
Statistics and Machine Learning Toolbox               Version 12.0        (R2020b)
댓글 수: 2
  Steven Lord
    
      
 2023년 7월 18일
				Can you show us exactly how you're trying to call sqlfind as well as the types and sizes of the variables that you're using as inputs in your sqlfind call? I want to confirm that you're calling sqlfind in a way that the function in Database Toolbox supports (in particular, that you're calling it with a connection object as the first input.)
  Pranav
 2023년 7월 18일
				
      편집: Pranav
 2023년 7월 18일
  
			Hi Steven, 
I am doing the below:
dbfile = 'test.db';
conn = sqlite(dbfile);
sqlfind(conn, '');
The output for conn is below and i can insert into test.db and read from it
conn = 
  sqlite with properties:
      Database: 'test.db'
        IsOpen: 1
    IsReadOnly: 0
Either way i cant ctrl+D into sqlfind and even typing sqlfind into the command window leads me to an 'unrecognised function or variable' error which i assume shouldn't happen if the inputs are wrong? 
I am also finding i cant execute sql commands using 'exec(conn, sqlquery)' function unless its  a table creation (which works). Is it a problem specific to how MATLAB interfaces with sqlite or am i doing something completely wrong?
참고 항목
카테고리
				Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!