Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('select Name,StuNum,sex,Class,Grade,DateOfbri from CheRep.db');
Query1.SQL.Add('where StuNum='''+EDit2.Text+''' and where Name='''+EDit1.Text+''''); //改这句了
Query1.Open;
Query1.SQL.Clear;
Query1.SQL.Add('select Name,StuNum,sex,Class,Grade,DateOfbri from CheRep.db');
Query1.SQL.Add('where StuNum='''+EDit2.Text+''' and where Name='''+EDit1.Text+''''); //改这句了
Query1.Open;
解决方案 »
- 怎么能使combobox控件不能被编辑
- 请问如何手动把query的数据赋值给dbgrid
- 用Delphi 6如何编写发送IP包的问题?
- ora-01092错误的解决方法,高分送上
- 安装了red hat 7.3简体中文版,可是看到了登录窗口,不可以输入,键盘和鼠标都死了。为什么
- cad二次开发在delphi里的数组结构的问题
- 上海金仕达卫宁软件有限公司怎么样啊?
- 哪有较好的DELPHI入门书?请告诉我谢谢
- 用adoquery的connection设置为adoconnection当把adoconnection的connected:=false后为什么adoquery还可以用?
- 請教各位﹕如何寫程序來啟動MSSQL Server?
- 有人用枪指着我的头!!
- 这有去大富翁的吗?为什么我无法在那发言?
Query1.SQL.Clear;
Query1.SQL.Add('select Name,StuNum,sex,Class,Grade,DateOfbri from CheRep.db');
Query1.SQL.Add('where StuNum = ' + #39 + EDit2.Text + #39 + ' and where Name = ' + #39 +EDit1.Text + #39);
Query1.Open;
嘻嘻嘻,字符串嘛
EDBEngineError with message "Invalid use of keyword.
Token: where
line Number:2'
错误依旧?
为什么请指教
谢谢!
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('select Name,StuNum,sex,Class,Grade,DateOfbri from CheRep.db');
Query1.SQL.Add('where StuNum='''+EDit2.Text+''' and where Name='''+EDit1.Text+''''); //改这句了
Query1.Open;
两个WHERE了
改成where stunum='+#39+edit2.text+#39+' and Name='+#39+edit1.text+#39