在.NET访问MySQL数据库经验总结

复制string connstr=Setting.Instance().GetConnectionString("MySQL"); MySQLConnection conn =newMySQLConnection(connstr); conn.Open(); string query = "insert into myfirst(Id,数据Name) values(?Id,?Name)"; MySQLCommand cmd = newMySQLCommand(query, conn); MySQLParameter para1=newMySQLParameter("?Id",DbType.Int32); 1.2.3.4.5.6.
本文地址:http://www.bzve.cn/html/480f9399426.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。