Re: Insertar datos en una tabla
Programando en VB,puedes hacer uso de los conectores de MySQL para las versiones .NET, y el conector ODBC para .NET o versiones anteriores.
Imports MySql.Data.MySqlClient
Public function Prueba (byval x as string) as boolean
Dim comMySQL As New MySqlCommand
try
comMySQL.commandtext="Insert into `tabla` (campo) values ('"& x &"')"
comMySQL.executenonquery()
catch ex as exception
return false
messagebox.show("Error")
end try
return true
end function
Donde la variable "x" contiene el valor de un campo de tu formulario.
Espero que te sea de ayuda.
Edited 1 time(s). Last edit at 10/13/2008 11:17AM by Miguel Martinez.
Subject
Views
Written By
Posted
9346
September 05, 2008 10:27AM
2408
September 05, 2008 11:07AM
34349
September 08, 2008 12:36PM
7143
September 08, 2008 05:39PM
4011
October 10, 2008 04:29AM
Re: Insertar datos en una tabla
11651
October 13, 2008 11:15AM
4473
October 17, 2008 06:58AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.