C# sql
insert into dbo.MainFrame values ( '"+ dataGridView1.Rows[i].Cells[0].Value.ToString() + "' ,'" + dataGridView1.Rows[i].Cells[1].Value.ToString() + "','" + dataGridView1.Rows[i].Cells[2].Value.ToString() + "')
上面是一行 我要怎么把它整理成一个 dataGridView1.Rows[i].Cells[0].Value.ToString() 占一行的样式。
就是insert into dbo.MainFrame values ( '"+ dataGridView1.Rows[i].Cells[0].Value.ToString() + "' ,
'" + dataGridView1.Rows[i].Cells[1].Value.ToString() + "',
'" + dataGridView1.Rows[i].Cells[2].Value.ToString() + "')