insert data to mysql

2 ビュー (過去 30 日間)
Siti Maisarah
Siti Maisarah 2011 年 4 月 16 日
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

採用された回答

Walter Roberson
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 ?
  1 件のコメント
Siti Maisarah
Siti Maisarah 2011 年 4 月 16 日
i have use the tutorial that u give me just now..tutorial that using fastinsert..and the data is successfully insert to sql..thanks a lot =)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by