Matlab database toolbox writting error

1 回表示 (過去 30 日間)
Alex Fernandez
Alex Fernandez 2018 年 5 月 15 日
編集済み: Alex Fernandez 2018 年 5 月 27 日
Error using database.odbc.connection/sqlwrite (line 218) ODBC JDBC/ODBC Error: ODBC Driver Error: .
  6 件のコメント
Alex Fernandez
Alex Fernandez 2018 年 5 月 27 日
編集済み: Alex Fernandez 2018 年 5 月 27 日
%%Connection to database
>> conn = database(tablename,username,password);
>> conn.Message % ans = [] if successful connection
%%Read data
>> setdbprefs('DataReturnFormat','table');
>> data_estacion = sqlread(conn,table1);
>> data_trh = sqlread(conn,table2);
%%Writing data
>> data_result = table(data_1,data_2,data_3,'VariableNames'{'Name_1','Name_2','Name_3'});
>> sqlwrite(conn,table_result,data_result)
Alex Fernandez
Alex Fernandez 2018 年 5 月 27 日
編集済み: Alex Fernandez 2018 年 5 月 27 日
I work with PHPMyAdmin database and ODBC Driver 8.0. The program stops before sqlwrite function. I don't know what to do. I would appreciate any kind of help. Thanks.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeReporting and Database Access についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by