先帮我搞定这个问题:在ASP 中生成字串: "where Title like %keyword% and title like %keyword% or title like %keyword%"通过一个参数传入存储过程 如何连接到存储过程中原有语句后面??? 参数: @KeyWord传入SQL: "Title like %keyword% and title like %keyword%"如原有: select * form Table1 where id=1 and @KeyWord
sunon(童毅) : 不是说好了晚上给你搞定吗! 我这现在分不够!兄弟们,对吧?!
你用tstringlist或者tstrings很方便操作的,这个对象已经封装好了这些操作了 var strsTmp:TStringlist; const delLine=5; begin strsTmp:=TStringlist.Create; try strsTmp.LoadFromFile('d:\test.txt'); strsTmp.Delete(delLine); finally strsTmp.Free; end
var strsTmp:TStringlist; const delLine=5; begin strsTmp:=TStringlist.Create; try strsTmp.LoadFromFile('d:\test.txt'); strsTmp.Delete(delLine); strsTmp.SaveToFile('d:\test.txt'); finally strsTmp.Free; end
"where Title like %keyword% and title like %keyword% or title like %keyword%"通过一个参数传入存储过程 如何连接到存储过程中原有语句后面???
参数:
@KeyWord传入SQL: "Title like %keyword% and title like %keyword%"如原有: select * form Table1 where id=1 and @KeyWord
不是说好了晚上给你搞定吗!
我这现在分不够!兄弟们,对吧?!
var
strsTmp:TStringlist;
const
delLine=5;
begin
strsTmp:=TStringlist.Create;
try
strsTmp.LoadFromFile('d:\test.txt');
strsTmp.Delete(delLine);
finally
strsTmp.Free;
end
strsTmp:TStringlist;
const
delLine=5;
begin
strsTmp:=TStringlist.Create;
try
strsTmp.LoadFromFile('d:\test.txt');
strsTmp.Delete(delLine);
strsTmp.SaveToFile('d:\test.txt');
finally
strsTmp.Free;
end