上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 82 下一页
摘要: identity(1,1)是指每插入一条语句时这个字段的值增1,(不能插入) identity primary key是指个主键,表示唯一的意思,(也不能插入),也是自增 两者基本上是沒有什么分別的, 最大的区別是: 系统默认identity primary key会为主键加上索引 就是說,建立identity prmary key 系统會加上索引,而identity不会 阅读全文
posted @ 2010-05-14 19:29 greencolor 阅读(225) 评论(0) 推荐(1) 编辑
摘要: set IDENTITY_INSERT OutDetails oninsert OutDetails(Outid, Goodsid, OutDepot, Amount, OutPrice) values(2, 39, 2, 1, 1.00) 阅读全文
posted @ 2010-05-14 19:28 greencolor 阅读(121) 评论(0) 推荐(1) 编辑
摘要: Outplace { Id; Name}outDepot OutPlace ----------- ---------Model class Properity, this properity belongs to Model Class Place, which has Id andName properities.has properities, no methodsoutDepot.OutP... 阅读全文
posted @ 2010-05-13 23:08 greencolor 阅读(152) 评论(0) 推荐(0) 编辑
摘要: DBHelper.GetExcuteNonQuery(sb.ToString()) > 0; public static int GetExcuteNonQuery(string cmdTxt) { return GetExcuteNonQuery(cmdTxt, null); } /// <summary> /// 带参数化的 主要用于(增加,删除,修改),返回受影响的行数 /... 阅读全文
posted @ 2010-05-13 22:29 greencolor 阅读(751) 评论(0) 推荐(0) 编辑
摘要: var 隐式类型的本地变量是强类型变量(就好像您已经声明该类型一样),但由编译器确定类型。// Example #1: var is optional because// the select clause specifies a stringstring[] words = { "apple", "strawberry", "grape", "peach", "banana" };var wor... 阅读全文
posted @ 2010-05-09 21:22 greencolor 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 位于 head 部分的脚本, 当脚本被调用时,或者当事件被触发时,脚本就会被执行。当你把脚本放置到 head 部分后,就可以确保在需要使用脚本之前,它已经被载入了。位于 body 部分的脚本:在页面载入时脚本就会被执行。当你把脚本放置于 body 部分后,它就会生成页面的内容。你既可以把脚本放置到 body,又可以放置到 head 部分。可以将 JavaScript 写入一个外部文件之中。然后以 ... 阅读全文
posted @ 2010-05-08 23:02 greencolor 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 语句语法AND / ORSELECT column_name(s)FROM table_nameWHERE conditionAND|OR conditionALTER TABLE (add column)ALTER TABLE table_name ADD column_name datatypeALTER TABLE (drop column)ALTER TABLE table_name DR... 阅读全文
posted @ 2010-05-08 20:00 greencolor 阅读(153) 评论(0) 推荐(0) 编辑
摘要: SQL 对大小写不敏感.某些数据库系统要求在每条 SQL 命令的末端使用分号。可以把 SQL 分为两个部分:数据操作语言 (DML) 和 数据定义语言 (DDL)。•SELECT - 从数据库表中获取数据•UPDATE - 更新数据库表中的数据•DELETE - 从数据库表中删除数据•INSERT INTO - 向数据库表中插入数据•CREATE ... 阅读全文
posted @ 2010-05-08 17:40 greencolor 阅读(175) 评论(0) 推荐(0) 编辑
摘要: using ZqzWebChart.Charting; string strProvider = "Server=.;DataBase=dbname;UID=sa;PWD=sa"; string mySelectQuery = "SELECT * FROM ProjectStage"; SqlConnection MyConn = new SqlConnection(strProvider); S... 阅读全文
posted @ 2010-05-03 23:53 greencolor 阅读(590) 评论(0) 推荐(0) 编辑
摘要: using ZqzWebChart.Charting; Random random = new Random(); for (int pointIndex = 0; pointIndex < 10; pointIndex++) { Chart1.Series["Series1"].Points.AddY(random.Next(5, 95)); Chart1.Series["Series2"... 阅读全文
posted @ 2010-05-03 22:28 greencolor 阅读(387) 评论(0) 推荐(0) 编辑
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 82 下一页