ORACLE查询字段中含有空格的数据
SELECT * FROM T_NAME WHERE REGEXP_LIKE(COLNAME, '( )+');
SELECT * FROM T_NAME WHERE length(COLNAME) > length(trim(COLNAME));
SELECT * FROM T_NAME WHERE substr(字段,-1)=' ';
SELECT * FROM T_NAME WHERE REGEXP_LIKE(COLNAME, '( )+');
SELECT * FROM T_NAME WHERE length(COLNAME) > length(trim(COLNAME));
SELECT * FROM T_NAME WHERE substr(字段,-1)=' ';