博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MySQL验证是否字符是日期串
阅读量:4214 次
发布时间:2019-05-26

本文共 375 字,大约阅读时间需要 1 分钟。

No ready made function is provided 

To validate date 

This function work 

(you can take what ever size you want in varchar(1-1024) ) 


CREATE FUNCTION IsDate (sIn varchar(1024)) RETURNS INT 

BEGIN 

declare tp int; 


if (select length(date(sIn)) is null )then 

set tp = 0; 

else 

set tp = 1; 

end if; 

RETURN tp; 

END 

If you find any bug for this please post it here 

I will try to solve this


转载地址:http://zhfmi.baihongyu.com/

你可能感兴趣的文章
osq对mutex的优化
查看>>
读写锁总结
查看>>
dpdk中的大页初始化
查看>>
queued spinlock锁的使用
查看>>
irq_exit中触发软件中断
查看>>
dpdk中的多核编程
查看>>
workqueue使用小结
查看>>
网卡优化
查看>>
kernel支持3中内存模型
查看>>
kni
查看>>
kernel address space layout randomization
查看>>
mbuf_user_pool_ops和mbuf_platform_pool_ops
查看>>
work_on_cpu
查看>>
uninitialized_var
查看>>
memtester
查看>>
readprofile
查看>>
seccomp
查看>>
udev修改网卡name的patch
查看>>
module blacklist
查看>>
sysctl_hung_task_panic
查看>>