if strval<>' ' then
begin
sqlstr:='select * from student where (stu_id='+""+strval+"')';
flag:=1;
end;
在sqlstr:='select * from student where (stu_id='+""+strval+"')'; 给说题目所示错误。
begin
sqlstr:='select * from student where (stu_id='+""+strval+"')';
flag:=1;
end;
在sqlstr:='select * from student where (stu_id='+""+strval+"')'; 给说题目所示错误。
sqlstr:='select * from student where stu_id='+'''+strval+''';
sqlstr:='select * from student where stu_id='+'''+strval+''';
sqlstr:='select * from student where stu_id='''+strval+''''