摘要: use 库名 go select COUNT(*) from sysobjects where xtype='U' 阅读全文
posted @ 2021-04-25 10:27 岳凯歌 阅读(742) 评论(0) 推荐(1) 编辑
摘要: c 平方根 //平方 pow() int a = pow(4,2); // 4的平方=16 //开方 int b = pow(4,0.5); // 4的平方根=2 int c = sqrt(4); // 4的平方根=2 //整数绝对值 int c = abs(b-c); //浮点数绝对值 doubl 阅读全文
posted @ 2020-09-04 14:32 岳凯歌 阅读(264) 评论(0) 推荐(0) 编辑
摘要: int index=0; private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (webBrowser1.ReadyState == WebBrow 阅读全文
posted @ 2020-07-30 19:49 岳凯歌 阅读(1121) 评论(0) 推荐(0) 编辑
摘要: 查询条件查询条件去重 select * from t_order_smthkMain s where 1=1 and not exists(select 1 from t_order_smthkMain where PlanCode=s.PlanCode and dateadd(hh,Time,Ad 阅读全文
posted @ 2020-06-12 14:52 岳凯歌 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 赋值: richtextbox.Document.Blocks.Clear(); string srt="12356457"; Run run=new Run(str); Paragraph p=new Paragraph(); p.Inlines.add(run); richtextbox.Doc 阅读全文
posted @ 2020-04-14 11:26 岳凯歌 阅读(3819) 评论(0) 推荐(0) 编辑
摘要: 整理和总结一下SQLCE的用法引用 System.Data.SqlServerCe(1)数据库文件的创建 SqlCeEngine eng = new SqlCeEngine("DataSource = " + FileName); eng.CreateDatabase();(2)初始化连接 m_Sq 阅读全文
posted @ 2019-09-25 11:15 岳凯歌 阅读(718) 评论(0) 推荐(0) 编辑
摘要: foreach (Window item in Application.Current.Windows) { if (item is window1) return; } 阅读全文
posted @ 2019-05-07 15:27 岳凯歌 阅读(2382) 评论(0) 推荐(0) 编辑
摘要: 创建一个table2 向table2中插入 table1中name为11的所有行(前提table2不存在) select * into table2 from table1 where name=‘ 11’ 向table4中插入table3中name为11的所有行(前提table4存在) inser 阅读全文
posted @ 2019-05-06 11:18 岳凯歌 阅读(132) 评论(0) 推荐(0) 编辑
摘要: if (MapGrid.Visibility == Visibility.Visible) { this.MapGrid.Visibility = Visibility.Collapsed; ((Image)this.vis.Content).Source = new BitmapImage(new 阅读全文
posted @ 2019-04-30 12:14 岳凯歌 阅读(417) 评论(0) 推荐(0) 编辑
摘要: dataview类型的用sort排序, 自定义数据源: DataTable tb = new DataTable(); tb.Columns.Add("name"); tb.Columns.Add("age"); tb.Rows.Add("张三","18"); tb.Rows.Add("李四","1 阅读全文
posted @ 2019-04-30 11:33 岳凯歌 阅读(147) 评论(0) 推荐(0) 编辑