189 8069 5689

SQL判断字段是否以数字开头或者包含数字

# 字段是否以数字开头
SELECT EMPLOYEE,DAYS FROM EMPLOYEE WHERE SUBSTR(EMPLOYEE_ID,1,1) BETWEEN '0' AND '9';

# 字段内部是否包含数字
SELECT * FROM EMPLOYEE WHERE REGEXP_LIKE (EMPLOYEE_ID,'^[0-9]+[0-9]$');

当前标题:SQL判断字段是否以数字开头或者包含数字
文章地址:http://cdxtjz.cn/article/gcsspo.html

其他资讯