insert data to mysql
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Siti Maisarah
el 15 de Abr. de 2011
Editada: John Kelly
el 29 de Oct. de 2014
hi there..i really new in matlab.i want to save data in database, where i use mysql as my database.
however, how to connect the query that we have made with the button in gui..for example, button insert.
0 comentarios
Respuesta aceptada
Walter Roberson
el 15 de Abr. de 2011
Basically, if you want the user to be able to insert arbitrary text, you create an edit uicontrol, and when you want to insert it into the mysql database, you get() the 'String' property of the uicontrol. If you want the user to be able to insert arbitrary numbers, you do much the same, except after you get the String property you validate that it has numbers like you need and then you use a routine such as str2double() to convert the string into numeric values.
5 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Database Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!