sSelect := 'select image from timage where ImageNum ='+''''+ Inum+''''+'';
如果你的inum=9的话效果如下:
select image from timage where imagenum='9';你觉得对马?
如果我没有猜错你的 imagenum是个数字类型的对巴.那么就应该这么些:
m_sql :=' select image from timage where ImageNum='+IntToStr(Inum);
效果如下:
select image from timage where imagenum = 9;
试试看,good luck
如果你的inum=9的话效果如下:
select image from timage where imagenum='9';你觉得对马?
如果我没有猜错你的 imagenum是个数字类型的对巴.那么就应该这么些:
m_sql :=' select image from timage where ImageNum='+IntToStr(Inum);
效果如下:
select image from timage where imagenum = 9;
试试看,good luck
sSelect := 'select image from timage where ImageNum ='+ inttostr(Inum)
如果是字符型
sSelect := 'select image from timage where ImageNum ='+''''+ Inum+''''
//去掉了最后两个单引号