健康一贴灵,专注医药行业管理信息化
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页
摘要: 清洗决策易的客户 select * from jcyclient where clientid=0 create index jcyclient_index on jcyclient(clientname) update jcyclient set clientname=replace(client 阅读全文
posted @ 2022-05-25 13:30 一贴灵 阅读(75) 评论(0) 推荐(0)
摘要: 两个月不用QUERY做报表,记忆的河流已经干涸。 clear:zjhsl. ZJHSL = LIPS-LFIMG. IF LIKP-LFART = 'NCR' . ZJHSL = 0 - ZJHSL. ENDIF. = 前后要有空格 ; 阅读全文
posted @ 2022-05-23 13:59 一贴灵 阅读(116) 评论(0) 推荐(0)
摘要: 烧脑的SQL label表用来保存标签 的值 。(id,name,parentid ,code基本上没有用到;) client表中有一个label整形数组字段,存储的是标签内容,如‘{5,14,16}’ select a.label,array_to_string(array_agg(b.name) 阅读全文
posted @ 2022-05-20 09:31 一贴灵 阅读(393) 评论(0) 推荐(0)
摘要: 在splitcontainer的使用过程中,初学者不容易找到调整列宽的地方, 1、在属性框中选择“splitContainer1”, 2按一下Esc,就可以拖动中间分隔线调整列宽了: Winform调试中,Esc键可以用来查找,控件的下层是哪个控件。 阅读全文
posted @ 2022-05-20 09:16 一贴灵 阅读(961) 评论(0) 推荐(0)
摘要: alter table 表名 alter 字段名 set not null; alter table log alter ip set not null; 阅读全文
posted @ 2022-05-19 10:12 一贴灵 阅读(653) 评论(0) 推荐(0)
摘要: 对于没有主键的Postgresql数据表,执行以下语句即可增添自增的主键列id: ALTER TABLE table_name ADD COLUMN id BIGSERIAL PRIMARY KEY; 阅读全文
posted @ 2022-05-17 14:34 一贴灵 阅读(3655) 评论(0) 推荐(0)
摘要: 查询各连锁的标签 select a.id,a.name,b.name as label from client as a left join label b on b.id = any(a.label) where a.category='6' and b.parentid=1 如果有多个标签,可以 阅读全文
posted @ 2022-05-09 14:53 一贴灵 阅读(1059) 评论(0) 推荐(0)
摘要: label是一个数组字段,当用label作为查询条件时,可以使用@> array[x,y,z] 来查询 select id,name from client where label @> array[6,14] 如果只有一个值 ,可以使用 () =any(数组字段) select id,name f 阅读全文
posted @ 2022-04-25 14:30 一贴灵 阅读(511) 评论(0) 推荐(0)
摘要: 用普通的Convert.ToString(dataGridFilter.Rows[1].Cells[2].Value); 方法取值为空,改为: field = dataGridFilter["dgvColumnName", i].Value.ToString().Trim();可以取到 真的很无语 阅读全文
posted @ 2022-04-07 11:07 一贴灵 阅读(535) 评论(0) 推荐(0)
摘要: 这基本是一个从0创建datatable 的示例; 1、建表 DataTable dt= new DataTable(); 2、加列 DataColumn dc1 = new DataColumn("display", Type.GetType("System.String")); dt.Column 阅读全文
posted @ 2022-04-07 10:35 一贴灵 阅读(1092) 评论(0) 推荐(0)
摘要: 数据的存储格式如下: [{"Name": "进口连锁", "Value": "6030"}] [{"Name": "非连锁门店", "Value": "3002"}] [{"Name": "进口连锁", "Value": "6030"}] [{"Name": "进口连锁", "Value": &qu 阅读全文
posted @ 2022-04-07 08:42 一贴灵 阅读(665) 评论(0) 推荐(0)
摘要: 近期学习C#开发一个管理系统,后台采用PostgreSql数据库,第一次使用数组作为字段类型,因为C#类型基础不牢,频繁报错,取不到想要的值,网上资料也较少,搜到的问题,基本没有可以参考的答案; 在用dataGridView控件展示有以“数组”为字段类型的列时,要指定DataPropertyName 阅读全文
posted @ 2022-03-18 11:21 一贴灵 阅读(971) 评论(0) 推荐(0)
摘要: 一、采用函数,适用于符号比较多的情况; 1 --全角到半角转换函数 2 create or replace function CnFullToHalf(s character varying) 3 returns character varying 4 as 5 $$ 6 declare 7 ret 阅读全文
posted @ 2022-03-17 13:35 一贴灵 阅读(1110) 评论(1) 推荐(0)
摘要: 曲不离口,艺不离手,常看常新,有感而发 查询界面: *& * *& Report ZSDR0030 *& 交货单查询 *& * *&zh *& * REPORT zsdr0030. TABLES :likp,lips,zsact0003,kna1,vbap,vbak,vbrp,marm,mvke,v 阅读全文
posted @ 2022-03-11 16:26 一贴灵 阅读(297) 评论(0) 推荐(0)
摘要: 1 原生控件方法 frmClientMatch.MdiParent = this.ParentForm; FrmClientMatch frmClientMatch = new FrmClientMatch(); frmClientMatch.MdiParent = this.ParentForm; 阅读全文
posted @ 2022-03-10 15:26 一贴灵 阅读(1111) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页
学以致用,效率第一