随笔分类 -  数据库

数据库学习
摘要:1、常见时序数据库 参考:https://www.influxdata.com/time-series-database/#rankinghttps://db-engines.com/en/ 2、时序数据库 riakTS (分布式 时序数据库) 特点 设置过期类型:http://docs.basho.com/riak/ts/1.5.2/using/delet... 阅读全文
posted @ 2019-02-21 21:00 lvlin241 阅读(688) 评论(0) 推荐(0)
摘要:参考: es-sql: https://github.com/NLPchina/elasticsearch-sql/releases 执行SQL语句SearchDao org.nlpcn.es4sql.SearchDao.SearchDaosearchDao.explain(sqlStr).expl 阅读全文
posted @ 2019-02-21 20:50 lvlin241 阅读(3644) 评论(0) 推荐(0)
摘要:参考: https://www.progress.com/blogs/jdbc-tutorial-extracting-database-metadata-via-jdbc-driver http://blog.itpub.net/30246303/viewspace-2138852/ 阅读全文
posted @ 2019-02-21 20:25 lvlin241 阅读(669) 评论(0) 推荐(0)
摘要:参考: https://dzone.com/articles/how-use-linkedin-market-your 表空间信息 https://coderanch.com/t/300498/databases/Java-find-List-tablespaces-database getCata 阅读全文
posted @ 2019-02-21 20:06 lvlin241 阅读(1846) 评论(0) 推荐(0)
摘要:问题: 一个界面有个多个文本框输入值(或下拉框)展示的查询条件,也就是组合条件查询,需要在java里面动态拼接SQL,where条件如何写? 解决思路: 在where关键字后面固定写 1=1, 若还有其他条件,直接拼接 " and 条件 "。 阅读全文
posted @ 2018-09-05 10:20 lvlin241 阅读(4045) 评论(0) 推荐(0)
摘要:参考:https://docs.pivotal.io/search?q=function 阅读全文
posted @ 2018-08-01 09:47 lvlin241 阅读(3142) 评论(0) 推荐(0)
摘要:涉及的索引表 参考:http://blog.nbhao.org/1539.html 获取 某个数据表 所有的索引(主表索引&&分区表索引) 阅读全文
posted @ 2018-07-31 10:54 lvlin241 阅读(358) 评论(0) 推荐(0)
摘要:raise notice 'just a simple output msg'; 阅读全文
posted @ 2018-07-27 17:34 lvlin241 阅读(1183) 评论(0) 推荐(0)
摘要:drop external table if exists tableName; 阅读全文
posted @ 2018-07-16 17:40 lvlin241 阅读(1182) 评论(0) 推荐(0)
摘要:参考: https://stackoverflow.com/questions/7389416/postgresql-how-to-pass-parameters-from-command-line https://blog.csdn.net/dazuiba008/article/details/7 阅读全文
posted @ 2018-07-08 16:18 lvlin241 阅读(4948) 评论(0) 推荐(0)
摘要:mysql, shell脚本中执行sql脚本并传递参数 阅读全文
posted @ 2018-07-08 16:03 lvlin241 阅读(14190) 评论(0) 推荐(0)
摘要:1、sql脚本(t.sql) 2、shell脚本(a.sh 为方便说明,a.sh与t.sql在同一目录下) 说明:3种执行方式,后两行也可以(已注释,感兴趣可以尝试下) #!/bin/sh mysql -u root < t.sql# mysql -u root -e "source t.sql"# 阅读全文
posted @ 2018-07-08 15:17 lvlin241 阅读(10629) 评论(0) 推荐(0)