SQL属性中有一句‘SELECT * FROM CDBMEMBERS WHERE USERNAME=:Udatam.SQLQ.ParamByName('u').AsString:=F3_edit2.Text;
datam.SQLQ.ParamByName('p').AsString:=f3_edit3.Text;
datam.sqlq.active:=true;if datam.SQLQ.RecordCount=0 thenif edit4.Text=f3_edit3.Text then showmessage('Error Password, RE_type not first')
else
begin
datam.SQLQ.SQL.Clear;
datam.SQLQ.SQL.Add('insert into cdb_members (username,password) values (:u,:p)');
datam.SQLQ.ExecSQL(false); //这段如果当独执行是可以的了,而且SQL属性为空
end
datam.SQLQ.ParamByName('p').AsString:=f3_edit3.Text;
datam.sqlq.active:=true;if datam.SQLQ.RecordCount=0 thenif edit4.Text=f3_edit3.Text then showmessage('Error Password, RE_type not first')
else
begin
datam.SQLQ.SQL.Clear;
datam.SQLQ.SQL.Add('insert into cdb_members (username,password) values (:u,:p)');
datam.SQLQ.ExecSQL(false); //这段如果当独执行是可以的了,而且SQL属性为空
end
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货