双向?你这不是冲突么?mysql的数据从sqlserver得到,怎么还有自己的数据?
如果想获取mysql的数据,就只能用sql语句去获取。
在foxtable里面,引用mysql.dll,通过写代码的方式,往msyql查询数据
Dim conn As MySql.Data.MySqlClient.MySqlConnection
Dim cmd As MySql.Data.MySqlClient.MySqlCommand
Dim sdr As MySql.Data.MySqlClient.MySqlDataReader
Dim connStr As String = "server=localhost; port=3306; user id=root; password=root; database=dbexhibitionprinter"
conn = New MySql.Data.MySqlClient.MySqlConnection(connStr)
conn.Open
Dim dt As new System.Data.DataTable
cmd = new MySql.Data.MySqlClient.MySqlCommand("select * f rom usersInfo", conn)
sdr = cmd.ExecuteReader()
conn.close