Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %buat koneksi dengan database mysql.
- conn = database('tws','root','password','com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/tws');
- %preparing the result from fem and converting the data to cell type.
- dd=d';
- dd=num2cell(dd);
- for i=1:25
- exdata(:,i)=dd(:,i);
- end
- %what columns would be insert to.
- colnames = {'tf1','tf2','tf3','tf4','tf5','tf6','tf7','tf8','tf9','tf10',...
- 'tf11','tf12','tf13','tf14','tf15','tf16','tf17','tf18','tf19','tf20',...
- 'tf21','tf22','tf23','tf24','tf25'};
- %insert some pieces of data.
- fastinsert(conn, 'fem', colnames, exdata);
Add Comment
Please, Sign In to add comment