EDBEngineError  with message invalid use of keyword
token : position(pId ,name )  
是什么原因 数据不匹配马?????

解决方案 »

  1.   

    sql语句有问题,涉及数据库,每一种数据库支持的SQL
    语句不一样,将你的语句贴出来看一下。
      

  2.   

    Query1.Close;
            Query1.SQL.Clear;
            Query1.SQL.Add('Insert into Position(Pname,PID) values('
                            +WorkStyle.Text+',"100")');
             Query1.Prepare;
             Query1.ExecSQL;
             Query1.Close;
    请快一点回复
      

  3.   

    你有无效的字段 你的pname应该是字符的吧:要加上"",用:
    "'+workstyle.text+'" 如下:Query1.SQL.Add('Insert into Position(Pname,PID)'); 
    Query1.sql.add('values("'+WorkStyle.Text+'","100")');
      

  4.   


    Query1.SQL.Clear;
    Query1.SQL.Add('Insert into Position(Pname,PID) values('"'
                            +WorkStyle.Text+'"',"100")');
             Query1.Prepare;
             Query1.ExecSQL;
             Query1.Close;
      

  5.   

    我在Query的Sql Builder 里查都不行。提示 :Token not found.Token:"Position",Line Number:2.
      

  6.   

    PID:Alpha Size:3
    PName:A 10
    Salary: $