上一页 1 ··· 3 4 5 6 7
  2019年5月7日
摘要: SELECT CASE field0010 WHEN '计划' THEN 1 ELSE 2 END AS s FROM formmain_5991 SELECT CASE WHEN (IFNULL(o.ENDTIME,99))=99 THEN (CASE WHEN (CURDATE()-pc.FORECASTTIME)>0 THEN (CASE W... 阅读全文
posted @ 2019-05-07 15:02 Lionever 阅读(579) 评论(0) 推荐(0)
  2019年1月22日
摘要: 1 using System; 2 3 using Autodesk.AutoCAD.DatabaseServices; 4 using Autodesk.AutoCAD.Geometry; 5 using Autodesk.AutoCAD.Runtime; 6 7 [assembly: CommandClass(typeof(Sample.AddBlock))] 8 nam... 阅读全文
posted @ 2019-01-22 15:54 Lionever 阅读(1099) 评论(0) 推荐(0)
  2019年1月2日
摘要: 1 UPDATE table_name 2 SET column1=value1,column2=value2,... 3 WHERE some_column=some_value; 1 UPDATE Websites 2 SET alexa='5000', country='USA' 3 WHERE name='菜鸟教程'; 阅读全文
posted @ 2019-01-02 10:39 Lionever 阅读(169) 评论(0) 推荐(0)
  2018年12月28日
摘要: 1、ISNULL 判断为空 2、getdate() 获取当前时间 3、 table1 inner join table2 on table1.t1 = table2.t1 阅读全文
posted @ 2018-12-28 09:10 Lionever 阅读(223) 评论(0) 推荐(0)
  2018年12月10日
摘要: public static ObjectId StringToObjectId(string strId) { long intId = Convert.ToInt64(strId);//这里的strId是一个纯数字字符串,将其转换成64的long类型,32的会报错 IntPtr init = new IntPtr (intId);... 阅读全文
posted @ 2018-12-10 18:22 Lionever 阅读(405) 评论(1) 推荐(0)
摘要: 1 PromptSelectionOptions selectionOpZDH = new PromptSelectionOptions(); 2 selectionOpZDH.MessageForAdding = "请选择展点号和高程点:"; 3 4 //根据过滤器来选 5 ... 阅读全文
posted @ 2018-12-10 13:40 Lionever 阅读(924) 评论(0) 推荐(0)
  2018年12月4日
摘要: [assembly: CommandClass(typeof(clist.Main))] //[assembly:ExtensionApplication(typeof(clist.Main))] namespace clist { public class Main { public string qm; public void VAddToo... 阅读全文
posted @ 2018-12-04 17:35 Lionever 阅读(1399) 评论(0) 推荐(0)
摘要: using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; using System; using System.Collections.Generic; using System.ComponentModel; u... 阅读全文
posted @ 2018-12-04 17:28 Lionever 阅读(462) 评论(0) 推荐(0)
  2018年11月29日
摘要: C#整数三种强制类型转换int、Convert.ToInt32()、int.Parse()的区别Convert.ToInt32(double value) 如果 value 为浮点型,采用四舍五入; int(4.6) = 4,int转化其他数值类型为int时没有四舍五入,强制转换(截取整数部分); 阅读全文
posted @ 2018-11-29 10:14 Lionever 阅读(10294) 评论(0) 推荐(0)
  2018年11月2日
摘要: 1 /引用Microsoft.Office.Interop.Excel.dll文件 2 //添加using 3 using Microsoft.Office.Interop.Excel; 4 using Excel=Microsoft.Office.Interop.Excel; 5 6 //设置程序 阅读全文
posted @ 2018-11-02 18:09 Lionever 阅读(223) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7