- 博客(16)
- 资源 (10)
- 问答 (1)
- 收藏
- 关注
原创 sublime workspace与project的关系以及如何手动安装插件
参考:https://www.zhihu.com/question/22681628手动安装插件(以emmet为例)https://www.cnblogs.com/zhiyingzhou/p/5922420.html推荐一个好用的插件 project manager
2018-12-28 15:17:59 610
原创 库文件找不到
问题描述error while loading shared libraries: libboost_system.so.1.45.0: cannot open shared object file: No such file or directory解决方法先找到libboost_system.so位置updatedblocate libboost_system.so假设发...
2018-12-27 14:43:32 428
原创 linux数组
关联数组定义数组data=( [101]=D101 [102]=D102_103 [103]=D102_103)array=(["jim"]=158 ["amy"]=168)遍历数组for i in &
2018-12-24 20:42:09 515
原创 shell字符串相关操作
字符串比较不等值比较在[[]]中支持,在[]中不支持只支持大于与小于不管是使用[[]]还是使用[],请注意在靠近括号的字符与括号之间要使用空格实例1 支持小于-> # cat -n test.sh 1 #!/bin/sh 2 if [[ 133 < 133SP01 ]];then 3 echo yes 4 else ...
2018-12-21 16:13:35 174
转载 sublime text3支持函数跳转配置
具体操作点击Preferences->Browse Packages进入Packages目录,然后打开User目录,查看User目录里面有没有Default (Windows).sublime-mousemap文件,如果没有则创建一个。这个文件是用来配置sublime的鼠标操作的。在文件中输入如下内容:[{"button": "button2","count": 1,
2018-12-18 13:54:06 1937
原创 exists与count(*)
使用count(*)SELECT count(*)FROM actor aJOIN film_actor fa USING (actor_id)WHERE a.last_name = 'WAHLBERG'执行计划使用existsSELECT EXISTS ( SELECT * FROM actor a JOIN film_actor fa USING (actor_id)...
2018-12-06 18:39:02 2468
原创 Linux Shell中捕获CTRL+C
实例#!/bin/bashtrap 'onCtrlC' INTfunction onCtrlC () { echo 'Ctrl+C is captured'}while true; do echo 'I am working!' sleep 1donehttps://www.jianshu.com/p/b81783fee7da
2018-12-06 09:47:56 11538 1
原创 PG COPY导入导出数据
导出实例1/home/postgres/pgsql/bin/psql -U postgres -c "copy(select datname from pg_database where datname not in ('postgres','template0','template1','zabbix') order by datname) to '/home/postgres/pgsql/...
2018-12-05 14:27:10 1249
原创 shell中exit与return以及source与sh的区别
直接看例子[root@localhost test]# cat b2.shecho b2exit 1[root@localhost test]# cat c2.shsource ./b2.shreturn $?[root@localhost test]# sh c2.sh b2[root@localhost test]# [root@localhost test]# [roo...
2018-12-04 16:45:30 2143
原创 PG dblink
查询操作create extension dblink;drop view view_remote_tb1;CREATE VIEW view_remote_tbl_version AS select * from dblink('dbname=imos host=207.101.67.94 port=5432 user=postgres password=passwd'::te...
2018-12-04 11:56:34 351
oracle rac 2 day's guide
2018-02-05
exec()函数族疑问,输出不是预料的结果
2015-11-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人