摘要: sql server中根据坐标算出两点之间距离 (单位:千米) 例:查询附近距当前位置10千米内的设备 select * from cy_device where dbo.fnGetDistance(longitude,latitude,'114.074217','32.127457')< 10 阅读全文
posted @ 2019-11-25 16:56 YuanY 阅读(746) 评论(0) 推荐(0) 编辑
摘要: Number Formatting in FusionCharts 显示两位小数 <chart ... decimals='2' > Chart without any decimal formatting applied With decimals set to 2 (see the first 阅读全文
posted @ 2017-02-13 16:44 YuanY 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 先获取字符串中的汉字,再用“”空格去代替。 private static Regex RegCHZN = new Regex("[\u4e00-\u9fa5]"); public static string GetRemoveCHZNStr(string inputstr) { Match m =R 阅读全文
posted @ 2017-02-10 17:11 YuanY 阅读(470) 评论(0) 推荐(0) 编辑
摘要: DECLARE newID varchar2(50);begininsert into table1 (aa,bb) values('7777','8888') RETURNING ID INTO newID;COMMIT;insert into table2 (pid) values(newID) 阅读全文
posted @ 2016-12-22 10:20 YuanY 阅读(4769) 评论(0) 推荐(0) 编辑
摘要: 1、replacereplace(x,y,z)返回值为将字符串X中的Y串用Z串替换后的结果字符串。 replace(x,y)返回值将字符串X中为Y串的地方删除例:epacel('aaabbb','bbb','ccc')结果:aaaccc2、length表示的是字符串的字符长度 SELECT leng 阅读全文
posted @ 2016-11-23 11:48 YuanY 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: REGEXP_SUBSTR函数格式如下: function REGEXP_SUBSTR(String, pattern, position, occurrence, modifier) __srcstr :需要进行正则处理的字符串 __pattern :进行匹配的正则表达式 __position : 阅读全文
posted @ 2016-11-23 11:34 YuanY 阅读(45686) 评论(1) 推荐(2) 编辑
摘要: 这是最基础的用法: LISTAGG(XXX,XXX) WITHIN GROUP( ORDER BY XXX) 例: select listagg(oeid,',') within GROUP (order by oeid) 阅读全文
posted @ 2016-11-23 11:06 YuanY 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: 一、逗号拼接字段 SELECT LISTAGG(aa, ',') WITHIN GROUP (ORDER BY aa) AS AA FROM *** where id<5 输出结果例如:1,2,3,4 二、时间条件 select * from aaa where time >=to_date('20 阅读全文
posted @ 2016-11-11 11:27 YuanY 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 主要分为三块介绍(单值函数、聚合函数、列表函数) 一、单值函数(比较简单,看一遍基本也就理解记住了) 1、基本加减乘车没有什么可说的,只需要注意一点,任何值与null一起运算 ,结果都为null,因为null代表着未知值,与null进行加减乘除运算得到的还是未知值,返回的结果还是null。 sele 阅读全文
posted @ 2016-10-26 17:07 YuanY 阅读(695) 评论(0) 推荐(0) 编辑