我采用的是 oracle的ADO驱动程序,如下:
strCnnString := 'Provider=OraOLEDB.Oracle.1;Password=user;Persist Security Info=True;User ID=user;Data Source=sss';
  oCnn.ConnectionString := strCnnString;
  if ( oCnn.Connected = false ) then oCnn.Connected := true;
  if ( oCnn.InTransaction) then exit;
  strSQL:='Select cUserNo from smUser where rtrim(vcPassword)=rtrim(''' + trimright(strPassword) + ''')'; --strpassword是从外面带进来的为 widestring类型
  oDS.Recordset := oCnn.Execute(strSQL);  oDS为 dataset
执行后,按道理,肯定是有值的,但每次总是为0,是不是 widestring后面还有一个/0呀,我如何转换呀??
  if ( oDS.Recordset.RecordCount <=0 ) then