一、逻辑查询处理的各个阶段
(5)SELECT DISTINCT TOP()
(1)FROM JOIN ON
(2)WHERE
(3)GROUP BY
(4)HAVING
(6)ORDER BY
上边语句是一个普通格式的查询语句,基本包含了所有的查询条件和关键字。你可能会发现前边的序号并不是按顺序来的,被你说对了,这...
分类:
数据库 时间:
2014-05-07 08:26:11
阅读次数:
476
/*判断表AA中是否存在AA_ID这一列,如果不存在,则新增*/
IF NOT EXISTS (SELECT 1 FROM syscolumns INNER JOIN sysobjects ON sysobjects.id = syscolumns.id
WHERE syscolumns.name = 'AA_ID' AND sysobjects.name = 'AA')
ALTER TA...
分类:
数据库 时间:
2014-05-07 07:33:47
阅读次数:
373
今天一个女生咨询我报名学优化。聊着聊着就让我优化一个sql,贴给大家看一下
select (case
when grouping(allwo.workshop_code) = 1 then
''
else
nvl(max(allwo.workshop_code), '未维护车间')
end) worksho...
分类:
其他好文 时间:
2014-05-07 06:45:47
阅读次数:
398
1、实现源码
JavaScript实现获取table中某一列的值
function getTdValue()
{
var tableId = document.getElementById("tab");
var str = "";
for(var i=1;i<tableId.rows.length;i++)
{
alert(tableId.row...
分类:
编程语言 时间:
2014-05-07 06:27:47
阅读次数:
478
The number of steps
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
Mary stands in a strange maze, the maze looks like a triangle(the first layer have one room,the seco...
分类:
其他好文 时间:
2014-05-07 06:15:59
阅读次数:
427
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gr...
分类:
其他好文 时间:
2014-05-07 06:10:17
阅读次数:
370
One evening Johnny found some funny looking beens in his grandfather's garden shed, and decided to plant one of them. Next morning, to his surprise he found an enormous beanstalk growing in his back y...
分类:
其他好文 时间:
2014-05-07 05:17:42
阅读次数:
303
我喜欢用自己的语言通过联系现实生活中的一些现象解释一些概念,当我能做到这一点时,说明我已经理解了这个概念.今天要解释的概念是:同步/异步与阻塞/非阻塞的区别.
这两组概念常常让人迷惑,因为它们都是涉及到IO处理,同时又有着一些相类似的地方.
首先来解释同步和异步的概念,这两个概念与消息的通知机制有关.
举个例子,比如我去银行办理业务,可能选择排队等候,也可能取一个小纸条上面有我的...
分类:
其他好文 时间:
2014-05-07 04:14:40
阅读次数:
309
AssertionError继承Error,提供了多个构造方法,代码如下:
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this w...
分类:
其他好文 时间:
2014-05-07 03:20:22
阅读次数:
579
一、基础
1、说明:创建数据库?CREATE DATABASE database-name?
2、说明:删除数据库?drop database dbname?
3、说明:备份sql server?
--- 创建 备份数据的 device?
USE master?EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwin...
分类:
数据库 时间:
2014-05-06 18:57:44
阅读次数:
506