这个是c++里的代码吧,是定义 :userid为参数,之后直接在代码中直接传入相关的值就可构成完整的sql了.
如(伪代码):
AnsiString sqlstr="select * from DFYWSMuserrole as userrole where userrole.userid = :puserid";
ado->SQL->Clear();
ado->SQL->Add(sqlstr);
ado->Params->ParamByName("puserid")->Value="11023";
这样就会直接以select * from DFYWSMuserrole as userrole where userrole.userid = 11023
执行sql脚本.