string   sql   =   "delele   from   hyb   where   id=‘ "   +   e.CommandArgument+“‘ “ ;

解决方案 »

  1.   

    =‘ "   +   e.CommandArgument+“‘  单引号有问题吧,好像是中文模式下的.
      

  2.   

    1. ‘ 是全角的,要用半角的
    2. 最后少了一个双引号
    当然,如果是自动编号,就不应该用引号
    string   sql   =   "delele   from   hyb   where   id="   +   e.CommandArgument ;
      

  3.   

    string   sql   =   "delele   from   hyb   where   id="   +   e.CommandArgument  ;
    这样就可以了!
      

  4.   

    整型前后不能加单引号,这样:string sql = "delele from hyb where id=" + e.CommandArgument;
      

  5.   

    jetsqldelete * from ..
      

  6.   

    另外你的语句里'是全角的.如果你的id是数字类型的.string   sql   =   "delele  * from   hyb   where   id="   +   e.CommandArgument;
    或者
    string   sql   =   "delele  * from   hyb   where   id='"   +   e.CommandArgument + "'";都是可以的.
      

  7.   

    delele改为delete 单词写错了····
      

  8.   

    数字类型 用字串定界符  ' ' 是会隐式转换的.所以 delete * from tb where id='5'

    delete * from tb where id=5
    没有区别但是如果id是文本类型的(含有不可转换为数字的值),那么必须使用字串定界符.
      

  9.   

    看看你的e.CommandArgument是否有值。
      

  10.   

    string       sql       =       "delele       from       hyb       where       id="       +       e.CommandArgument     ; 
      

  11.   

    delete 不是delele 整型字段不加引号
      

  12.   


    ---> delete * from ???? 

    这也行? 
      

  13.   

    "delele from hyb where id=" + e.CommandArgument 
      

  14.   

    tds__609 
    近世进士尽是近视⊙-⊙  
    等 级:
     发表于:2008-01-29 13:18:2415楼 得分:0 --->   delete   *   from   ????   这也行?    
     
    ----------------------
    标准jetsql语法DELETE [表.*]
        FROM 表
        WHERE标准当然,不加*也是可以的. 印像中前些年用时,早期的不行.t-sql不能加*
      

  15.   

    string   sql   =   "delele   from   hyb   where   id="   +   e.CommandArgument+“  ;
      

  16.   

    string sql = "delele   from   hyb   where   id='"+e.CommandArgument+"'";
      

  17.   

    string  sql  = "delele from  hyb where  id="+e.CommandArgument+“
      

  18.   

    access数据库整型不要加单引号,改成delele   from   hyb   where   id="   +   e.CommandArgument就可以了.sqlserver oracle加不加都可以.   
      

  19.   

    1.   ‘   是全角的,要用半角的 
    2.   最后少了一个双引号 
    当然,如果是自动编号,就不应该用引号 
    string       sql       =       "delele       from       hyb       where       id="       +       e.CommandArgumen
      

  20.   

    string   sql   =   "delele   from   hyb   where   id=‘ "   +   e.CommandArgument+“‘   ; 单词错,单引号,双引号错
      

  21.   

    语句本身有问题!
    如果是accessdelete * from hyb  where id= "+ e.CommandArgument+"
    //如果编号是不用单引号的,楼主少了个*号delete hyb where id="+ e.CommandArgument+"
    //这是SQl的语法
      

  22.   

     string sql="delete from hyb where id='"+e.CommandArgument+"'";
      

  23.   

    string sql =  "delele from [hyb] where [id]='"+ e.CommandArgument +"';
      

  24.   

    string       sql       =       "delele     from       hyb       where       id="       +       e.CommandArgument; 
    OR 
    string       sql       =       "delele    from       hyb       where       id='"       +       e.CommandArgument   +   "'";