我可以将此代码/查询输出到标签框吗?或者有没有办法在标签框上输出这个代码?
SqlConnection conn3 = new SqlConnection(connString);
conn3.Open();
string query2 = "select company_id from JO.dbo.Comp right join JO.dbo.Proj on Comp.company_id = Proj.company_id";
SqlCommand getid = new SqlCommand(query2, conn3);
getid.ExecuteNonQuery();
conn.Close();