Home > Database > Mysql Tutorial > body text

Oracle判断指定列是否全部为数字的sql语句

WBOY
Release: 2016-06-07 16:20:03
Original
1214 people have browsed it

判断指定列是否全部为数字在实际应用过程中很常见,下面是具体的示例语句,由此需求的朋友可以借鉴下,希望对大家有所帮助 复制代码 代码如下: select nvl2(translate(name,'1234567890 ', ''),'is characters ','is number ') from customer_info where nvl

判断指定列是否全部为数字在实际应用过程中很常见,,下面是具体的示例语句,由此需求的朋友可以借鉴下,希望对大家有所帮助

 

复制代码 代码如下:


select nvl2(translate(name,'1234567890 ', ''),'is characters ','is number ') from customer_info where nvl2(translate(name,'1234567890 ', ''),'is characters ','is number ')='is number '

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template