10 2016 档案

摘要:0:none 1:null 空 2:Row-S 行共享(RS):共享表锁 3:Row-X 行专用(RX):用于行的修改 4:Share 共享锁(S):阻止其他DML操作 5:S/Row-X 共享行专用(SRX):阻止其他事务操作 6:exclusive 专用(X):独立访问使用 数字越大锁级别越高, 阅读全文
posted @ 2016-10-31 13:31 Andy·Li 阅读(788) 评论(0) 推荐(0)
摘要:select a.program, b.spid, c.sql_text,c.SQL_ID from v$session a, v$process b, v$sqlarea c where a.paddr = b.addr and a.sql_hash_value = c.hash_value an 阅读全文
posted @ 2016-10-31 12:46 Andy·Li 阅读(9040) 评论(0) 推荐(0)
摘要:由于Oracle不支持select top 语句,所以在Oracle中经常是用order by 跟rownum的组合来实现select top n的查询。简单地说,实现方法如下所示:select 列名1 ...列名n from(select 列名1 ...列名n from 表名 order by 列 阅读全文
posted @ 2016-10-31 10:18 Andy·Li 阅读(35809) 评论(0) 推荐(0)
摘要:sqlplus/nolog connect sys as sysdba alert user sys identified by pwd; 阅读全文
posted @ 2016-10-28 16:27 Andy·Li 阅读(1634) 评论(0) 推荐(0)
摘要:问题描述: 在PL SQL中insert 中文数据,显示不乱码,通过后台insert的中文数据,显示问号。 解决分三步: 1、Select userenv('language') from dual; => SIMPLIFIED CHINESE_CHINA.ZHS16GBK 2、注册表的Oracle 阅读全文
posted @ 2016-10-28 16:21 Andy·Li 阅读(1259) 评论(0) 推荐(0)
摘要:http://blog.itpub.net/29519108/viewspace-1443918/ 刚开始创建时,千万别点容器数据库,不然后面新建用户时,用户名前得加C##。 常用命令: sqlplus /nologconnect sys as sysdbastartup mountalter da 阅读全文
posted @ 2016-10-26 17:01 Andy·Li
摘要:错误提示为:所需的防伪表单字段“__RequestVerificationToken”不存在。 <%:Html.AntiForgeryToken()%> 在mvc4中的写法 @Html.AntiForgeryToken(); 当在view中没有写而action上有写时也报上述错误。 当请求为get时 阅读全文
posted @ 2016-10-18 17:21 Andy·Li
摘要:db.T_Images.Where(a => a.ReferenceID == id).Select(a => a.ID).ToList(); 阅读全文
posted @ 2016-10-09 15:50 Andy·Li