摘要:
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='菜鸟教程'; 阅读全文
摘要:
1、ISNULL 判断为空 2、getdate() 获取当前时间 3、 table1 inner join table2 on table1.t1 = table2.t1 阅读全文
摘要:
public static ObjectId StringToObjectId(string strId) { long intId = Convert.ToInt64(strId);//这里的strId是一个纯数字字符串,将其转换成64的long类型,32的会报错 IntPtr init = new IntPtr (intId);... 阅读全文
摘要:
1 PromptSelectionOptions selectionOpZDH = new PromptSelectionOptions(); 2 selectionOpZDH.MessageForAdding = "请选择展点号和高程点:"; 3 4 //根据过滤器来选 5 ... 阅读全文
摘要:
[assembly: CommandClass(typeof(clist.Main))] //[assembly:ExtensionApplication(typeof(clist.Main))] namespace clist { public class Main { public string qm; public void VAddToo... 阅读全文
摘要:
using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; using System; using System.Collections.Generic; using System.ComponentModel; u... 阅读全文
摘要:
C#整数三种强制类型转换int、Convert.ToInt32()、int.Parse()的区别Convert.ToInt32(double value) 如果 value 为浮点型,采用四舍五入; int(4.6) = 4,int转化其他数值类型为int时没有四舍五入,强制转换(截取整数部分); 阅读全文
摘要:
1 /引用Microsoft.Office.Interop.Excel.dll文件 2 //添加using 3 using Microsoft.Office.Interop.Excel; 4 using Excel=Microsoft.Office.Interop.Excel; 5 6 //设置程序 阅读全文