上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 首先创建序列:create sequence序列名 start with 1 increment by 1 nomaxvalue nocycle 其次创建触发器:create or replace trigger触发器名 before insert on表名称 for each rowbeginselect 序列名.nextval into:new.表的列名 from dual;end;查询一个具... 阅读全文
posted @ 2010-05-11 16:30 居后不争 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 在Oracle建立表空间是 设置表空间10M增长,当进行insert into tableName select* from tableName时 提示ora-01653 表空间无法通过256扩展当设置表空间的增长100M时 错误就没有了 阅读全文
posted @ 2010-01-19 08:45 居后不争 阅读(635) 评论(0) 推荐(0) 编辑
摘要: create sequence User_ID increment by 1 start with 1 nomaxvalue nocycle 实现按1自增的序列create table Accounts_Users ( User_ID intnot null, UserName varchar(50) not null, Password varchar(20) not null) 创建表crea... 阅读全文
posted @ 2009-12-16 19:17 居后不争 阅读(369) 评论(0) 推荐(0) 编辑
摘要: =System.Convert.ToDateTime(Fields!Wcsj.Value).ToString("yyyy-mm-dd") sqlServer 将时间类型yyyy-mm-dd hh:mm:ss转化为yyyy-mm-dd:select convert(varchar,字段名称,23) as 字段名称 from tableName; 阅读全文
posted @ 2009-11-26 08:56 居后不争 阅读(2665) 评论(0) 推荐(0) 编辑
摘要: 在PowerDesigner12 逆向工程DataBase SQl2005时出现:unable to list the tables 信息此时应该设置sqlserver2005数据库的行为设置为指定Sql server版本兼容:执行:EXEC sp_dbcmptlevel 'dbname', '90'; GO sp_dbcmptlevel (Transact-SQL):将某些数据库行为设置为与指... 阅读全文
posted @ 2009-11-07 11:27 居后不争 阅读(510) 评论(0) 推荐(0) 编辑
摘要: EXEC sp_dboption 'oldDbName', 'Single User', 'TRUE' EXEC sp_renamedb 'oldDbName', 'NewDbName' EXEC sp_dboption 'NewDbName', 'Single User', 'FALSE' 阅读全文
posted @ 2009-11-03 15:32 居后不争 阅读(449) 评论(0) 推荐(0) 编辑
摘要: #region ========MD5加密======== public string MD5Encryption(string userPassword) { string MD5EncrypPassword = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(userPassword, "MD... 阅读全文
posted @ 2009-09-04 09:13 居后不争 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 产生错误:解决方案:第一步:默认网站--属性-----http头第二步:点击mime类型:第三步:点击新建:输入扩展名以及类型: 阅读全文
posted @ 2009-08-14 14:30 居后不争 阅读(2646) 评论(1) 推荐(0) 编辑
摘要: Opacity="0.4"如果 Opacity 值为 0,则表示画笔完全透明;如果值为 1,则表示画笔完全不透明。如果值为 0.5,则表示画笔的不透明度为 50%;如果值为 0.725,则表示画笔的不透明度为 72.5%,依此类推。小于 0 的值将被视为 0,而大于 1 的值将被视为 1。Ellipse的Stroke属性指的是椭圆的边线的颜色 StrokeThickness:获取或设置 Shape... 阅读全文
posted @ 2009-08-06 13:43 居后不争 阅读(894) 评论(0) 推荐(0) 编辑
摘要: 当使用多个dropdownlist进行条件的判断时可以使用一下方法System.Text.StringBuilder sqlString=new System.Text.StringBuilder();sqlString="select * from tableName where 1=1"if (DropDownList1.SelectedItem.Text != "请选择")sqlString... 阅读全文
posted @ 2009-07-29 13:21 居后不争 阅读(466) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页