Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Matlab accessing MySQL57, return data has no headers or label

2 ビュー (過去 30 日間)
Cheerful
Cheerful 2016 年 6 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Dear Experts,
In MySQL, the data has headers for each column ie Ticker, Date, Price. However, when I used the below to fetch data from MySQL to matlab, the return data has no headers.
Do you know how to return the data with headers in Matlab?
Thank you
conn = database('XXX','root','XXXX',...
'Vendor','MySQL',...
'Server','localhost');
sqlquery = 'select * from fr1000 left join xPrices on fr1000.id = xPrices.id and fr1000.xDate = xPrices.xDate';
curs = exec(conn,sqlquery)
curs = fetch(curs);
curs.Data
close(conn)

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by