1: TADOCommand 的使用方法:
with ADOCommand do
begin
commandText:='.........'
command Type:=cmdText;
Parameters.ParamByName(".....");//其中的Parameters是?????
Value:='HI'//其中的HI是?????
TADODataSet1.RecordSet:=Execute;
end;
2:
TMemo 与TRichEdit的属性当中
WantReturns:指用户是否在文本框中输入硬回车符///// 硬回车符车??????????????????????
with ADOCommand do
begin
commandText:='.........'
command Type:=cmdText;
Parameters.ParamByName(".....");//其中的Parameters是?????
Value:='HI'//其中的HI是?????
TADODataSet1.RecordSet:=Execute;
end;
2:
TMemo 与TRichEdit的属性当中
WantReturns:指用户是否在文本框中输入硬回车符///// 硬回车符车??????????????????????
ADOCommand1.CommandText:='insert into T values(:Id,:Name)';//:id,:name是动态参数
ADOCommand1.Parameters.ParamByName('Id').Value:=2;//为动态参数id付值
ADOCommand1.Parameters.ParamByName('Name').Value:='Test';
ADOCommand1.Execute;//执行WantReturns=false时回车是输入不进去的。试一下就明白了