上一页 1 2 3 4 5 6 7 ··· 28 下一页

2020年2月23日

oralce正则表达式判断中文汉字

摘要: oracle正则表达式regexp_substr、regexp_like(11g好像不支持)、regexp_replace是无法像其他正则表达式一样用[\u4e00-\u9fa5]来匹配中文的。 所以,我们需要用另一种方式来实现oracle正则表达式匹配中文。 我们需要用到oracle的内置函数UN 阅读全文

posted @ 2020-02-23 12:35 mol1995 阅读(6872) 评论(1) 推荐(0) 编辑

2020年2月6日

外部sysListView32内容获取及设置选中状态

摘要: public void SetLisSelected(IntPtr listView,List<string> fcusers) { //该listview总行数 int rowcnt = API.SendMessage(listView, API.LVM_GETITEMCOUNT, 0, 0); 阅读全文

posted @ 2020-02-06 20:17 mol1995 阅读(3181) 评论(1) 推荐(0) 编辑

文件、文件夹按名称、时间排序

摘要: 1、按名称顺序排列 private void SortAsFileName(ref FileInfo[] arrFi) { //正序 Array.Sort(arrFi, delegate(FileInfo x, FileInfo y) { return x.Name.CompareTo(y.Name 阅读全文

posted @ 2020-02-06 20:10 mol1995 阅读(910) 评论(0) 推荐(0) 编辑

2020年2月3日

c#获取外部程序ListView的值或TreeView的值

摘要: https://blog.csdn.net/taotaohuoli/article/details/45913099 阅读全文

posted @ 2020-02-03 13:39 mol1995 阅读(223) 评论(0) 推荐(0) 编辑

2020年1月13日

OracleSpatial 处理超过1000个点的几何对象时,报错Ora-00939: 函数的参数过多解决方法

摘要: oracle空间字段mdsys.sdo_geometry存储多边形,报错ora-00939:to many arguments for function sql语句 update d_area set coordinate=mdsys.sdo_geometry(2003,8307,null,mdsy 阅读全文

posted @ 2020-01-13 10:04 mol1995 阅读(1522) 评论(0) 推荐(0) 编辑

2020年1月11日

一条insert into语句 插入多条记录

摘要: 关键是不用列名和 values关键字 insert into TS_TABLE_COL ( select * from xxx) 阅读全文

posted @ 2020-01-11 11:13 mol1995 阅读(1182) 评论(0) 推荐(0) 编辑

2019年12月31日

二维坐标点OracleSpatial表达方法

摘要: SDO_GEOMETRY ( 2001, --二维坐标点 8307, --经纬度坐标系 SDO_POINT_TYPE ( 89.5513888888889,38.17,NULL ), NULL, NULL ) 阅读全文

posted @ 2019-12-31 15:04 mol1995 阅读(270) 评论(0) 推荐(0) 编辑

2019年11月28日

用select提取List元素自身序号

摘要: var cs = currentCitys.Select((c, i) => new { id = c.CITY_ID, 序号 = (i + 1).ToString(), 城市类型 = c.IS_FOREIGN == "Y" ? "国际城市" : "国内城市", 名称 = c.NAME }).ToL 阅读全文

posted @ 2019-11-28 20:00 mol1995 阅读(946) 评论(0) 推荐(0) 编辑

以事务处理数据库

摘要: bool res = true; using (var db = DAL.DbBaseFactory.OpenConnection()) { IDbTransaction tran = db.DbTransaction; try { //res &= XXBLL.aaManager.Add(aa, 阅读全文

posted @ 2019-11-28 14:43 mol1995 阅读(118) 评论(0) 推荐(0) 编辑

2019年10月19日

c#操作sqlite db3数据库

摘要: 首先添加引用 System.Data.SQLite.dll,引用只用添加这个,但SQLite.Interop.dll文件必须也和它同时放在Debug目录下 然后可用: SQLiteConnection conn= new SQLiteConnection($"Data Source={tbFileP 阅读全文

posted @ 2019-10-19 11:30 mol1995 阅读(1006) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 28 下一页

导航