select distinct trim(left(e_riqi,4))) e_riqi from e_table where e_riqi is not null
用马龙兄的那句结果会多处一行,估计是空格之类的问题,用下面这句搞定了:select distinct trim(left(e_riqi,4)) e_riqi from e_table where e_riqi is not null and trim(e_riqi)<>'' 多谢马龙!答复重返荣耀:表中有空值,还可能有“”,“ ”,“ ”,所以...
多谢马龙!答复重返荣耀:表中有空值,还可能有“”,“ ”,“ ”,所以...
重新答复:我就是要取e_riqi的值