1、使用distinct查询所有不重复的记录2、创建数据表相同结构的临时表,将第一步的数据复制进去
create temporary table if not exists student_temp as (select distinct(name), sex
from student);3、tru...
分类:
数据库 时间:
2014-06-13 06:04:01
阅读次数:
290
select h.request_number,l.line_number,
msib.segment1 item_code,t.transaction_temp_id, t.transaction_quantity,
l.quantityfrom mtl_material_transactions...
分类:
数据库 时间:
2014-06-12 16:09:07
阅读次数:
278
CreatePROCEDUREP_InsertSubject@SubjectIdintASDECLARErsCURSORLOCALSCROLLFORselectstudentidfromstudentwhereStudentGradu=1OPENrsFETCHNEXTFROMrsINTO@tempStudentIDWHILE@@FETCH_STATUS=0BEGINInsertSelSubjectvalues(@SubjectId,@tempStudentID)FETCHNEXTFROMrsINTO@temp..
分类:
其他好文 时间:
2014-06-10 21:01:39
阅读次数:
203
There are three DMVs you can use to track
tempdb
usage:sys.dm_db_task_space_usagesys.dm_db_session_space_usagesys.dm_db_file_space_usageThe
first two ...
分类:
数据库 时间:
2014-06-10 11:27:07
阅读次数:
307
#include #define SIZE 8void bubble_sort(int a[],
int n);void bubble_sort(int a[], int n) { int i, j, temp; for (j = 0; j a[i +
1]) { ...
分类:
其他好文 时间:
2014-06-09 20:45:16
阅读次数:
255
Sort a linked list using insertion
sort.对于指针链表类题,分析时一定要用笔先清晰画出来,每个指针对应那些结点。对比:(1)插入排序的顺序表实现,是对temp从参考点temp往前与一个个元素比较,(2)插入排序的链表实现,是对temp从头结点开始往后与一个个元素...
分类:
其他好文 时间:
2014-06-09 17:27:30
阅读次数:
187
堆排序
// 测试堆排序
// @start:调整的起点
// @end:调整的终点,在堆排序的过程中,不断地减小调整区间,end参数起作用
void SiftDown(int arr[], int start, int end)
{
int i = start;
int j = 2*i + 1; // j记录的是i结点的左孩子
int temp = arr[i];
...
分类:
其他好文 时间:
2014-06-08 16:19:45
阅读次数:
187
经过与开发的不断协作,终于差不多把error日志的报错信息消灭的差不多了,但还是偶尔出现“*1939anupstreamresponseisbufferedtoatemporaryfile/var/cache/nginx/proxy_temp/2/00/0000000002whilereadingupstream,client:116.231.88.XX,server:_,request:"GET/timeHTTP/1.1",up..
分类:
其他好文 时间:
2014-06-08 02:36:04
阅读次数:
223
$array[$j+1]){ //升序排列 $temp = $array[$j];
$array[$j]=$array[$j+1]; $array[$j+1]=$temp; } ...
分类:
Web程序 时间:
2014-06-07 21:02:35
阅读次数:
343