有时候我们以A个表的colname字段做为另一个表B的查询条件时需要用到数据类型内容,所以我们就要排除一下表A的非数据类型
select * from B where col in ( select colname from A where translate(colname,'*0123456789','*') is null);
有时候我们以A个表的colname字段做为另一个表B的查询条件时需要用到数据类型内容,所以我们就要排除一下表A的非数据类型
select * from B where col in ( select colname from A where translate(colname,'*0123456789','*') is null);