-
几个暴动网数据库的代码
%20union%20select%201,1,l_conte nt,1,1,1%20from%20dv_log%20where%20l_id=5%20union%20select%2 01,1,1,1,1,1%20from%20dv_bbs1然后网络上出现了暴出全部日志
应用 2007-06-14
-
db2预防字段空值的处理
预防字段空值的处理 SELECT DEPTNO ,DEPTNAME ,COALESCE(MGRNO ,''ABSENT''),ADMRDEPT FROM DEPARTMENT
应用 2006-02-18
-
DB2 基础:日期和时间的使用
日期、时间及时间戳记,请参考适当的 DB2 寄存器:SELECT current date FROM sysibm.sysdummy1SELECT current time FROM sysibm
应用 2006-02-18
-
为数据库的表自动生成行号-为分页打好基础
用如下的SQL语句也可以生成第i页,每页n行,tid是主键列,select top n * from tab where strWhere and tid(select max(tid) fro
应用 2006-01-11
-
避免asp的SQL的执行效率低
=oConn.Execute("SELECT * FROM Books") while not oRs.Eof strSQL = "SELECT * FROM Authors WHERE AuthorID="oRs("AuthorID") oRs2=oConn.Execu
应用 2005-11-27
-
一条SQL语句的优化过程
:select sum(sl0000) from xstfxps2 wheredhao00 in (select dhao00 from xstfxps1 where trunc(ywrq00)=tru
应用 2005-11-18
-
分享一条有用的sql语句
大家讨论讨论。SELECT NVL(A.USERRATE, 1) AS USERRATEFROM(SELECT USERRATE , 1 AS TTT
应用 2005-11-09
-
SQL Server 管理常用的SQL和T-SQL
SQL Server 数据库管理常用的SQL和TSQL:1. 查看数据库的版本select @@version2. 查看数据库所在机器操作系统参数exec
应用 2005-11-09
-
oracle的数据分页查询
select tname,tabtype from (select tname,tabtype,row_number() over ( order by tname ) rn from
应用 2005-11-08
-
oracle里面如何写case语句
如下:SELECT LogID,UserID,LogTime,Url,Description,(case OperateType when OperateType = 0 then ''新增
应用 2005-11-08