查询是否存在id=1的字段
查询结果以messagebox形式跳出我这里很奇怪的是,调试了几次,要么返回结果一律是存在,要么一律不存在……

解决方案 »

  1.   

    select * from [表名] where 1=2
    这样得到表结构~~然后遍历列名
    后面你懂的
      

  2.   

    select * form xxx where id=1
    然后遍历数据集显示
      

  3.   

    这个问题   要去看看微软的DBHepler吧   !简单的增删改查
      

  4.   

    select * from [表名] where 1=2
    foreach(m in 表)

        表[""]=messagebox;
      

  5.   

    select count(id) num form xxx where id=1
    if(num==0){
    //不存在
    }else
    {
    //存在
    }