采用matlab访问数据库 matlab 2018b

%% 采用matlab访问数据库
conn = database('labmysqltraincourse','root','12345','Vendor','MYSQL','Server','localhost','PortNumber',3306);
data = fetch(conn,['SELECT * ' ...
    'FROM labmysqltraincourse.student']);
close(conn)
clear conn

 

 

发布了217 篇原创文章 · 获赞 7 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/Hodors/article/details/103166181