sql%rowcount用于记录修改的条数,就如你在sqlplus下执行delete
from之后提示已删除xx行一样,这个参数必须要在一个修改语句和commit之间放置,否则你就得不到正确的修改行数。例如:SQL> declare n
number; 2 begin 3 insert into t...
分类:
数据库 时间:
2014-05-07 17:21:07
阅读次数:
386
影响版本为5.7漏洞文件edit.inc.php具体代码:ExecuteNoneQuery(”
DELETE FROM `#@__guestbook` WHERE id=’$id’ “);ShowMsg(“成功删除一条留言!”,
$GUEST_BOOK_POS);exit();}else if($j...
分类:
数据库 时间:
2014-05-07 17:14:29
阅读次数:
3277
Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-05-07 14:07:56
阅读次数:
345
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-05-07 13:42:51
阅读次数:
278
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-07 02:55:24
阅读次数:
377
select * from table where id =
?类似于上面这样的sql,如果不用绑定变量,每次执行时Oracle会认为是不同的sql,会在每次执行时生成一遍执行计划,而执行计划的生成是非常耗CPU,试想一下,如果1000个并发都在执行这条语句,等于同时在生成1000个执行计划。如果使...
分类:
数据库 时间:
2014-05-07 00:58:05
阅读次数:
418
1、查看所有表的物理大小1 select segment_name, bytes from
user_segments order by bytes desc2、查看表空間的名稱及大小1 select t.tablespace_name,
round(sum(bytes/(1024*1024)),....
分类:
数据库 时间:
2014-05-07 00:30:02
阅读次数:
1232
如下:表A ID NAME1 A1 2 A2 3 A3 表B ID AID NAME1 1
B1 2 2 B2 3 2 B3 表A和表B是1对多的关系 A.ID => B.AID 1 SELECT ID,NAME FROM A WHERE
EXIST (SELECT*FROM B WHERE A.I...
分类:
数据库 时间:
2014-05-07 00:10:34
阅读次数:
475
1. 内连接(Inner
Join)
内连接是最常见的一种连接,它页被称为普通连接,而E.FCodd最早称之为自然连接。
下面是ANSI SQL-92标准
select *
from t_institution i
inner join t_teller t
on i.inst_no = t.inst_no
where i.inst_no = "5801"
其中inn...
分类:
数据库 时间:
2014-05-06 21:38:01
阅读次数:
428
工欲善其事,必先利其器。对IDE的熟练程度,真能影响开发效率 。
先普及下常识,以后有新的收获再补充。
最常用快捷键:
Ctrl+E Delete current line
Ctrl-Shift-Up/D Copy lines up/down
Ctrl-/ Add/remove comment lines
Alt-Shift-F Format select...
分类:
Web程序 时间:
2014-05-06 19:54:58
阅读次数:
486