NOT IN和NOT EIXTS在对允许为null的列查询时会有一定的风险。特别是NOT IN,如果子查询包含了最少一个NULL,会出现非预期的结果。下面做一个演示。 IF OBJECT_ID('ShipmentItems', 'U') IS NOT NULL DROP TABLE dbo.ShipmentItems; GO CREATE TABLE dbo.Sh...
分类:
其他好文 时间:
2014-06-18 11:24:25
阅读次数:
269
iptables-save > /root/myiptables将iptables规则导入到文件/root/myiptablseiptables-restore < /root/myiptables将/root/myiptalbes中的iptables规则导入到iptables
分类:
其他好文 时间:
2014-06-18 11:13:58
阅读次数:
159
通过游标和SP_SPACEUSED来查看当前库所有表数据行、已分配空间总量、数据使用总量、索引使用总量、已分配但未使用总量 1 if OBJECT_ID ('tempdb..#temp') is not null 2 drop table #temp 3 go 4 CREATE TABLE #tem...
分类:
其他好文 时间:
2014-06-18 10:16:59
阅读次数:
242
html页面代码Js代码 function DealUserInfo(qty){ if(qty>0) { var table1 = $("#tblUserInfo"); var...
分类:
Web程序 时间:
2014-06-18 10:07:03
阅读次数:
232
1 import UIKit 2 3 class ViewController: UIViewController,UITableViewDataSource, UITableViewDelegate 4 { 5 6 @IBOutlet var redView : UIView...
分类:
移动开发 时间:
2014-06-18 08:24:55
阅读次数:
199
ALTER TABLE语句:ALTER TABLEsql-statement ::= ALTER TABLE [database-name .] table-name alterationalteration ::= RENAME TO new-table-namealteration ::= .....
分类:
数据库 时间:
2014-06-18 00:21:55
阅读次数:
277
spring-mybatis-data-common-2.0新增分表机制,在1.0基础上做了部分调整.基于机架展示分库应用数据库分表实力创建create table tb_example_1( id bigint primary key auto_increment , eId bigint, .....
分类:
编程语言 时间:
2014-06-18 00:07:38
阅读次数:
317
CREATE PROCEDURE [dbo].[PROC_GetPriviousAndNextDetailContent]@Index varchar(20),--表主键@Table varchar(100),--从哪个表获取数据@Columns varchar(100),--需要获取哪些字段@Or...
分类:
数据库 时间:
2014-06-18 00:01:07
阅读次数:
242
进入linux系统root>/usr/bin/mysql-urootmysql>showdatabases;#查看数据库mysql>usetesttable;#testtable为所要查看的库,应用数据库mysql>showtables;#查看所有表mysql>descabc_table#查看表结构mysql>createtableabc(>idintnotnullprimarykey,>`type..
分类:
数据库 时间:
2014-06-17 18:17:46
阅读次数:
233
PostgreSQL支持数组,但是没有对数据内部元素进行排序的一个函数。今天我分别用PLPGSQL和PLPYTHONU写了一个。示例表结构:t_girl=#\dtest_array;
Table"ytt.test_array"
Column|Type|Modifiers
--------+-----------+--------------------------------------------------------..
分类:
数据库 时间:
2014-06-17 17:37:23
阅读次数:
254