001_创建数据库和表--数据库的创建不能再事物中展开,因为创建数据库本身就是一个事物,平常应该注意避免嵌套事务--创建数据库TEST_BAKIF EXISTS ( SELECT 1 FROM sys.sysdatabases WHERE name = 'TEST_BAK' ) PRINT N'数据...
分类:
数据库 时间:
2015-02-10 23:03:54
阅读次数:
426
002_系统表查询(sysdatabases等)--1.获取所有数据库名:SELECT Name FROM Master..SysDatabases ORDER BY Name--2.获取所有表名:--SELECT Name FROM DatabaseName..SysObjects Where X...
分类:
数据库 时间:
2015-02-10 23:03:22
阅读次数:
1169
检索id=2orid=5orid=9orid=56orid=38.然后按照2,5,9,56,38这个顺序排列,这是题目要求以下为解决方案:1.SELECT * FROM `test` WHERE `id` IN(2,5,9,56,38) ORDER BY FIELD(`id`,2,5,9,56,3....
分类:
数据库 时间:
2015-02-10 20:05:27
阅读次数:
189
step1. 确认到底是哪个段占用了sysaux空间:select segment_name,sum(bytes)/1024/1024 from dba_segments where tablespace_name='SYSAUX' group by segment_name order by 2 ...
分类:
其他好文 时间:
2015-02-10 18:31:21
阅读次数:
141
SELECT NZD_Products.Prd_typename a FROM dbo.NZD_Products where dbo.NZD_Products.Prd_barcodenumber = 'PD20090413' unionselect NZD_Seed.Seed_Category a ...
分类:
数据库 时间:
2015-02-10 18:26:02
阅读次数:
184
class A where T:new() 这是类型参数约束,where表名了对类型变量T的约束关系。where T:A 表示类型变量是继承于A的,或者是A本省。where T: new()指明了创建T的实例应该使用的构造函数。 .NET支持的类型参数约束有以下五种: where T: struc....
分类:
其他好文 时间:
2015-02-10 16:40:36
阅读次数:
161
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-02-10 15:06:30
阅读次数:
146
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2015-02-10 15:03:51
阅读次数:
163
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2015-02-10 15:00:46
阅读次数:
202
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2015-02-10 14:50:56
阅读次数:
101