我是用以下方法做,在我的机器上没问题,在其他机器上就执行不过去了
ora8报错,差不出记录赖 strsql:='select a.id id,a.title tt from info a,area_show b where a.id=b.infoid and b.show=''显示'' and a.type=:S_ArtmainType and b.areaid=:S_Artarea';
with OracleQuery1 do
begin
close;
sql.clear;
sql.add(strsql);
declarevariable('S_ArtmainType',otstring);
setvariable('S_ArtmainType',frmmain.ArtmainType);
declarevariable('S_Artarea',otstring);
setvariable('S_Artarea',frmmain.Artarea);
execute;
end;难道是98和2000 的问题么?还是ora8的问题??然后我把sql语句该le就都没问题了
strsql:='select a.id id,a.title tt from info a,area_show b where a.id=b.infoid and b.show=''显示'' and a.type=''lkj'' and b.areaid=''123123''';
ora8报错,差不出记录赖 strsql:='select a.id id,a.title tt from info a,area_show b where a.id=b.infoid and b.show=''显示'' and a.type=:S_ArtmainType and b.areaid=:S_Artarea';
with OracleQuery1 do
begin
close;
sql.clear;
sql.add(strsql);
declarevariable('S_ArtmainType',otstring);
setvariable('S_ArtmainType',frmmain.ArtmainType);
declarevariable('S_Artarea',otstring);
setvariable('S_Artarea',frmmain.Artarea);
execute;
end;难道是98和2000 的问题么?还是ora8的问题??然后我把sql语句该le就都没问题了
strsql:='select a.id id,a.title tt from info a,area_show b where a.id=b.infoid and b.show=''显示'' and a.type=''lkj'' and b.areaid=''123123''';
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货