![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
小桥丶
这个作者很懒,什么都没留下…
展开
-
mysql datetime类型 无意中给自己创造了一个bug记录下
mysql datetime时间类型的出现的一个小bug datatime类型当数据为 0000-00-00 00:00:00 java会解析报错无法识别 SQL异常: Cause: java.sql.SQLException: Value ‘0000-00-00 00:00:00’ can not be represented as java.sql.Timestamp 找到datetime数据为0000-00-00 00:00:00 这条数据修改成其他时间就OK了 ...原创 2021-03-25 10:18:10 · 170 阅读 · 0 评论 -
sql通过外键名称找到表
SELECT * FROM SRP_OM_POST FOR UPDATE; select a.constraint_name, a.table_name, b.constraint_name from user_constraints a, user_constraints b where a.constraint_type = ‘R’ and b.constraint_type = ‘P’ and a.r_constraint_name = b.constraint_name and a.constr原创 2020-07-24 08:04:56 · 673 阅读 · 0 评论