c语言基础学习 int num1 = 15; int num2 = 5; int temp
= 0; //先把num1放到temp里 temp = num1; //先把num2放到num1里 num1 = num2; //先把temp放到num2里
num2 = temp;算数运算...
分类:
移动开发 时间:
2014-06-11 21:50:28
阅读次数:
374
create user frame identified by tiger;grant create
session to frame;grant create table to frame;grant create tablespace to
frame;grant create view to ...
分类:
数据库 时间:
2014-06-11 13:00:15
阅读次数:
283
一、插入排序1.直接插入排序算法稳定,时间复杂度为O(n^2),空间移动复杂度为O(n2)如果序列是有序的,最好的时间复杂度为O(n)void
insertSort(int data[],int n){ for(int i=1;i=0&&data[j]>temp) { d...
分类:
其他好文 时间:
2014-06-11 12:53:06
阅读次数:
266
步骤一: 删除userdrop user ×× cascade说明:
删除了user,只是删除了该user下的schema objects,是不会删除相应的tablespace的。步骤二: 删除tablespaceDROP
TABLESPACE tablespace_name INCLUDING C...
分类:
数据库 时间:
2014-06-11 12:49:07
阅读次数:
277
在c/java中,拥有块级作用域的概念,大括号内就是一个块级作用域,在块级作用域内声明的变量,块以外不可见。C语音的块级作用域示例如下:int one =
1,two = 2;if(one < two){ int temp = 0; temp = one; one = two; ...
分类:
编程语言 时间:
2014-06-11 12:33:38
阅读次数:
258
--重启数据库FORCE APPLICATION ALL DB2STOPDB2START
--创建数据库CREATE DATABASE mysdedb USING CODESET UTF-8 TERRITORY US COLLATE USING
SYSTEM USER TABLESPACE MANA...
分类:
数据库 时间:
2014-06-11 10:20:03
阅读次数:
307
选择排序 直接选择排序: 选择排序,每一趟找到一个最小(大)值,每一趟遍历的数据减少一次。
template void SelectSort(T a[],int length){ T temp; for (int i=0;i0;i--) {
shift(a,i,n); //n只是起条件判断作用,并不...
分类:
其他好文 时间:
2014-06-07 21:10:36
阅读次数:
210
插入排序
直接插入排序
// 直接插入排序
void DirectInsertSort(int arr[], int lhs, int rhs)
{
int temp;
for (int i = lhs+1; i = 0 && temp < arr[j]...
分类:
其他好文 时间:
2014-06-07 14:31:54
阅读次数:
274
update #temp
set #temp.Recycle=case when UnionA.num>0 then 1 else 0 end
from (select GradeID,sum(num)as num from AreaAllot
where CHARINDEX(@Area,AreaAllot.Area)=1 and LEN(@Area)=LEN(Area)-2
...
分类:
数据库 时间:
2014-06-07 12:57:44
阅读次数:
304
public bool BackupAA() { int temp = 0; int tempdel
= 0; string sql = "INSERT INTO [WMSBAK].[dbo].[AACopy] SELECT * FROM
[TestDB].[dbo].[AA] WHERE Add....
分类:
其他好文 时间:
2014-06-07 09:46:26
阅读次数:
150