私はデータ グリッド ビューを持っています。データ グリッド ビューからデータベース テーブルにデータをコピーしたいのですが、mysql 例外がスローされます。助けてくださいここに私のコードがあります
foreach (DataGridViewRow row in dataGridView2.Rows)
{
if (row.Cells[0].Value != null) //if id is not null
{
string mysqlStatement = "INSERT INTO test1(Paper, Authors, ID, GSCitations) VALUES('" + row.Cells[0].Value + "','" + row.Cells[1].Value + "','" + row.Cells[2].Value + "','" + row.Cells[3].Value + "');";
MySqlCommand mysqlCmd = new MySqlCommand(mysqlStatement, connection);
mysqlCmd.ExecuteNonQuery();
}
}
不正な整数値: 行 1 の列「ID」の「検証可能なコンテンツの選択的開示のグループ化」はエラーです