insert data to mysql
조회 수: 2 (최근 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!