- 博客(4)
- 收藏
- 关注

原创 DataGridView下的DataGridViewComboBoxCell 显示与绑定下拉值
//DataGridView绑定查询的数据脚本 string sql = @"select CASE WHA_State when 1 THEN '启用' When 2 Then '暂停' when 3 Then '停止' End as WHA_State ,* from WHA_WarehouseArea where 1=1";//DataGridViewComboBoxCell...
2019-07-19 14:34:14
975
原创 DataGridView用法
DataGridView点击事件 //获取选中行的索引 int numHang = this.dGFactoryList.CurrentRow.Index; //获取选中行 中 列的索引 int numLie = this.dGFactoryList.CurrentCell.ColumnIndex...
2019-07-22 14:45:05
188
转载 Sqlserver 判断数据库,表是否存在
判断数据库是否存在 if db_id('数据库名') is not null drop database 。。。 go create 。。。判断数据表是否存在 select count(*) from sysobjects where id = object_id('数据库名.dbo.表名') if exists (select count(*)...
2019-07-19 15:49:26
3879
原创 msSQL 一张表内两个字段之间值范围约束
ALTER TABLE dbo.stu ADD CONSTRAINT CH_D_T CHECK(num <= maxnum)//dbo.stu 表名//num , maxnum 字段
2019-07-18 14:55:46
840
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人