oracle:判断字段是否全是数字

select * from test t
where length(t.id) = 6
and trim(translate(t.id, '0123456789', ' ')) is null

猜你喜欢

转载自blog.csdn.net/m0_38084243/article/details/84566702