c# 连接mysql
时间:2011-04-18 来源:V587
MySqlConnection connection = new MySqlConnectio(connectionString); using (MySqlCommand cmd = new MySqlCommand(safeSql, connection)) { try { connection.Open(); return cmd.ExecuteNonQuery(); } catch (Exception ex) { connection.Close(); return 0; } }
相关阅读 更多 +