|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2004/2/13 12:04:31 |
标题: |
|
加入我的收藏 |
楼主: |
各位大侠谁能帮我看看这有什么错误,老是提InADOQry:Parameters 'p0'not found 请问这是什么原因
begin with InADOQry do begin Close; sql.Clear; sql.Text := 'insert into GoodsType (TypeID,TypeName,ParentID )'+ 'values(:p0,:p1,:p2)'; /// showmessage(sql.Text); Parameters.ParamByName('p0').Value := TypeNo.Text; Parameters.ParamByName('p1').Value :=Trim(TypeName.Text); Parameters.ParamByName('p2').Value := PData.NodeParent; try execsql; except Application.MessageBox('插入错误','提示',mb_ok+mb_iconerror); end; end;
----------------------------------------------
- |
作者: |
|
2004/2/13 12:18:06 |
1楼: |
大侠们,帮帮忙,自已顶,顶,顶
----------------------------------------------
-
|
作者: |
hedong (hedong) |
★☆☆☆☆ |
-
|
盒子活跃会员 |
|
2004/2/13 12:41:59 |
2楼: |
改: sql.Text := 'insert into GoodsType (TypeID,TypeName,ParentID) values(:p0,:p1,:p2)';
再试试
----------------------------------------------
-
|
|