会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那人,那事,那代码
走走停停,终该是留点什么
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
41
42
43
44
45
46
下一页
2019年12月27日
postgres 窗口函数,分组并排名
摘要: SELECT depname, empno, salary, rank() OVER (PARTITION BY depname ORDER BY salary DESC) FROM empsalary; depname | empno | salary | rank + + + develop |
阅读全文
posted @ 2019-12-27 10:26 那时一个人
阅读(1219)
评论(0)
推荐(0)
2019年12月26日
docker 在不删除容器的情况下修改端口映射
摘要: 步骤:(必须要按照这个步骤来,不然修改不成功) 1) 停止容器2) 停止docker服务(systemctl stop docker)3) 修改这个容器的hostconfig.json文件中的端口(原帖有人提到,如果config.v2.json里面也记录了端口,也要修改) cd /var/lib/d
阅读全文
posted @ 2019-12-26 22:10 那时一个人
阅读(1345)
评论(0)
推荐(0)
2019年12月25日
odoo 报表开发技巧
摘要: 效果图如下: 模板代码: 1 <template id="purchase_order_report"> 2 <t t-call="web.html_container"> 3 <t t-foreach="docs" t-as="doc"> 4 <t t-call="web.external_lay
阅读全文
posted @ 2019-12-25 11:42 那时一个人
阅读(2362)
评论(0)
推荐(0)
odoo many2many字段 指定打开的form视图
摘要: <notebook> <page name="付款信息" string="付款信息"> <field name="account_payment_ids" context="{'form_view_ref':'purchase_ex.account_payment_view_form'}"> <tr
阅读全文
posted @ 2019-12-25 11:13 那时一个人
阅读(1344)
评论(0)
推荐(0)
2019年12月22日
docker sentry 配置文件位置
摘要: root@50f8462579a8:/etc/sentry# cd /etc/sentry/ root@50f8462579a8:/etc/sentry# ls config.yml sentry.conf.py # 我主要使用config.yml 来配置邮件服务器. 关于sentry只能发送测试邮
阅读全文
posted @ 2019-12-22 01:27 那时一个人
阅读(810)
评论(0)
推荐(0)
2019年12月21日
postgres 计算时差
摘要: 计算时间差秒数 select extract(epoch FROM (now() - (now()-interval '1 day') )); 要转换为天,小时等计量单位,就在做计算
阅读全文
posted @ 2019-12-21 00:28 那时一个人
阅读(381)
评论(0)
推荐(0)
2019年12月20日
postgres 字符操作补位,字符切割
摘要: 补位: select lpad('1',6,'0'); -- 字符切割 并取值: select split_part('1-2-3-4-5-6','-',4)
阅读全文
posted @ 2019-12-20 16:12 那时一个人
阅读(1064)
评论(0)
推荐(0)
postgres判断字符串是否为时间,数字
摘要: 时间判断函数定义: -- FUNCTION: public.isdate(character varying) -- DROP FUNCTION public.isdate(character varying); CREATE OR REPLACE FUNCTION public.isdate( d
阅读全文
posted @ 2019-12-20 15:12 那时一个人
阅读(2541)
评论(0)
推荐(0)
2019年12月19日
odoo fields_view_get
摘要: odoo fields_view_get创建动态视图方法 odoo fields_view_get方法是一个比较有用比较灵活的广泛,如果使用得当,可以做到一些常规方法无法实现的功能,本文列举若干种用法。 openerp的视图结构是以XML的格式存放于ir.ui.view表中,属于静态格式,设计之后就
阅读全文
posted @ 2019-12-19 18:11 那时一个人
阅读(2141)
评论(1)
推荐(1)
2019年12月12日
html 单元格合并
摘要: <table border="1" style={{margin:200}}><tbody><tr> <th colspan="2">我是占位符</th> <th colspan="2">我是占位符</th></tr><tr> <th rowspan="2">我是占位符</th> <th>我是占位符
阅读全文
posted @ 2019-12-12 11:03 那时一个人
阅读(361)
评论(0)
推荐(0)
上一页
1
···
41
42
43
44
45
46
下一页
公告