![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
weixin_46752178
这个作者很懒,什么都没留下…
展开
-
Error querying database Cause:com.mysql.cj.jdbc.exception.CommunicationsException:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.org.springframework.dao.RecoverableDataAccessException:Error querying database Cause:com.mysql.cj.jdbc.exception.CommunicationsException:The l原创 2020-06-08 13:54:53 · 1391 阅读 · 0 评论 -
Mysql增加索引
Alter userAdd index name (channel_no) using btree comment '用户名;原创 2020-05-14 17:49:04 · 101 阅读 · 1 评论 -
Mysql设置随机编号
Select concat(‘id’,@num:=@num+1) from table , (select @num:=0) a原创 2020-12-18 15:35:19 · 405 阅读 · 1 评论 -
Mysql根据年月日查询timestamp类型
Select * from table where data_format(time,’%Y-%m-%d) = ‘2020-09-25’原创 2020-09-29 14:34:03 · 837 阅读 · 0 评论 -
查询该表的列
select GROUP_CONCAT(COLUMN_name) from information_schema.COLUMNS where table_schema=‘库名’ and table_name =‘表名’原创 2020-12-02 19:31:23 · 73 阅读 · 0 评论 -
SQL错误[1046][3D000]: No database selected
没有指定数据库例如:Select * from pizza正确:Select * from ts.pizza原创 2021-01-28 18:13:51 · 2294 阅读 · 0 评论 -
oracle。case when和decode用法
select case com_type when '1' then '合同' when '2' then '订单' else '合约' end as '合同类型' , decode(com_type,'1','合同' ,'2','订单') as '合同类型' from table原创 2021-03-09 13:41:57 · 85 阅读 · 0 评论 -
oracle 使用sequence生成下一个id
select seqquence_id.nextval ID from dual原创 2021-09-03 15:52:42 · 510 阅读 · 0 评论 -
SQL错误 1264 [22001]data truncation: out of range value for column xxx at row1
bigDecimal(a,b)a:表示总长度,b:表示保留两位小数 检查数值是否超长比如我的bigDecimal(9.5)存10000.00000超过9位总长度原创 2021-01-08 10:44:34 · 3310 阅读 · 0 评论