insert data to mysql
4 次查看(过去 30 天)
显示 更早的评论
hi there, i have some problem with insert data to sql
if i use this coding
insert(conn,'test',{'firstname','lastname'},{'linda','sara'})
then the data 'linda n sara' is successfully insert to mysql..
but when i try to call data from the gui which is i use this coding,
insert(conn,'test',{'firstname','lastname'},{edit1.edit2})
edit1 and edit2 is my textbox in gui, the data cannot be insert to mysql
thanks
0 个评论
采纳的回答
Walter Roberson
2011-4-16
Is that a period between edit1 and edit2 or a comma?
When you get() the String property of the edit boxes, are you getting back something of class char or something of class cell ?
更多回答(0 个)
另请参阅
类别
在 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!