string sql = "select IndustryId from TABLE1 where IndustryName='"+ name +"'";
如何才能取出 IndustryId并存放到一个定义的变量里呢 大侠指点!!(假如我定义一个 int id; 怎么把查询出来的IndustryId存放到id里边呢??)
急!
...全文
16510打赏收藏
获取查询出来的值
string name = this.TextBox1.text; string sql = "select IndustryId from TABLE1 where IndustryName='"+ name +"'"; 如何才能取出 IndustryId并存放到一个定义的变量里呢 大侠指点!!(假如我定义一个 int id; 怎么把查询出来的IndustryId存放到id里边呢??) 急!