sql - Why does my values from matlab GUi failed to be inserted into database? -
i have 3 edit texts in matlab gets user input. i've managed values in array when run disp (data);. how insert text1,text2 , text3 database columns named value1, value2 , value3 respectively using fastinsert?
text1 = get(handles.edit0,'string'); text2 = get(handles.edit1,'string'); text3 = get(handles.edit2,'string'); tablename = 'description'; data = {text1,text2,text3}; colnames = {'value1','value2','value3'}; disp (data); fastinsert(conn,tablename,colnames,data); commit(conn);
Comments
Post a Comment