一个sql语句的有关问题,多谢大家了

请教大家一个sql语句的问题,谢谢大家了!
select (select SDESCRIPTION
          from cust_ActionCode a
         where a.scodevalue =
               substr(t.SACTNOTES2,
                      instr(t.SACTNOTES2, '=', 1, 2) + 1,
                      instr(t.SACTNOTES2, ',', 1, 2) -
                      instr(t.SACTNOTES2, '=', 1, 2) - 1)) SDESCRIPTION
  from act t
 where t.dtactdatekey = '2014-09-16 15:27:21:000000';   --null
 
-------------------------------------------------------------
SELECT substr(t.SACTNOTES2,
                      instr(t.SACTNOTES2, '=', 1, 2) + 1,
                      instr(t.SACTNOTES2, ',', 1, 2) -
                      instr(t.SACTNOTES2, '=', 1, 2) - 1) SDESCRIPTION
  from act t
 where t.dtactdatekey = '2014-09-16 15:27:21:000000'; --CDLS 
-----------------------------------------------------------------

select SDESCRIPTION
          from cust_ActionCode a
         where a.scodevalue ='CDLS'   ---非本人用卡




请教个简单问题,我第一个句子语法是不是有错,查出来是空值的。把条件单独拿出来查出值后带进去是有值的。谢谢大家!
------解决思路----------------------
语法上应该没啥问题,应该还是数据的事
SELECT substr(t.SACTNOTES2,
                      instr(t.SACTNOTES2, '=', 1, 2) + 1,
                      instr(t.SACTNOTES2, ',', 1, 2) -
                      instr(t.SACTNOTES2, '=', 1, 2) - 1) SDESCRIPTION
  from act t
 where t.dtactdatekey = '2014-09-16 15:27:21:000000';

检查这个的结果CDLS 的前后否存在空格之类不可见的字符