MS SQL×÷ÒµÎÊÌâ - MS-SQL Server / Ó¦ÓÃʵÀý
ÈçºÎÔÚSQL2005ÖÐÉ趨¶¨Ê±×÷Òµ£¬±ÈÈç˵¶¨Ê±ÇåÀíijЩ±íµÄÊý¾Ý£¬
»òÕßÊǶ¨Ê±µÄ½«Ä³Ð©±íµÄÊý¾Ýµ¼³öexcel£¡
ÔÚÏߵȴý£¬¼±¼±¼±£¬×îºÃÊÇÏêϸ²½Ö裡
֮ǰÎÒ×öµÄ×÷ÒµÓеãÎÊÌ⣡
°ïUP
²Î¿¼:http://hi.baidu.com/toiota/blog/item/ef105890249fa684a977a4dc.html
SQL code:
Àý×Ó£º
Êý¾Ý¿âTESTÖдæÔÚ±í
mc qcid jg bz
-------------------- ----------- ----------- ----------
name1 1 4 g
name1 2 4 g
name2 1 4 g
name2 2 4 g
name3 1 4 g
name3 2 4 g
name4 1 4 g
name5 1 4 g
name6 1 4 g
name7 1 4 g
name8 1 4 g
name9 1 4 g
ÏÖÔÚÒª½«×Ö¶ÎqcidÇåΪ0
½¨Á¢JOB:
µã»÷SQL SERVER ´úÀí-¡·×÷Òµ-¡·Ð½¨×÷Òµ-¡·Ãû³ÆÌËæ±ãÌ E-¡·µã»÷²½Öè-¡·Ð½¨-¡·²½ÖèÃû³ÆÌîE-¡·
Êý¾Ý¿âÑ¡ÔñTEST-¡·ÃüÁîÀïÃæдÉÏupdate test set qcid=0-¡·µã»÷¼Æ»®-¡·Ð½¨-¡·¼Æ»®Ãû³ÆE-¡·ÆµÂÊÄÇÑ¡ÔñÄãµÄJOBÖ´ÐеÄʱ¼ä£¨¾ßÌå¿´×Ô¼ºµÄÐèÒª£©-¡·×îºóµã»÷È·¶¨
ÏÂÃæÀ´Ö´ÐÐÏÂJOB£¬ÔÙ¿´¿´±íÀïµÄÊý¾Ý
-----------
mc qcid jg bz
-------
Ïà¹ØÎÊ´ð£º
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
--drop table #T1
--drop table #T2
create Table #T1(ID int,
QueryID nvarchar(20),
ResultID1 nvarchar(20),
ResultID2 nvarchar(20))
create Table #T2(SortNo int,
QueryID nvarchar(20),
ResultID1 nv ......
Êý¾Ý¿âÒªÔõôѧ²Å²»»áÏԵóéÏó°¡£¿
Õâ¾ÍÒª¿´ÄãÊʺÏʲô·½·¨ÁË£¬Õâ¾ßÌå²»ºÃ˵µÄ.....
ÔõôÁË£¬ÄѵÀ´ó¼Ò¶¼²»»á£¬»¹ÊÇÕæµÄÌ«³éÏó´ó¼Ò²»ÖªµÀÔõô˵°¡
½áºÏÄã²Ù×÷Êý¾Ý¿âµÄÌå»áºÍÀí½â£¬Ó¦¸ÃЧ¹û»á¸üºÃ¡£·ñÔò£¬Ò ......
<table style="width: 1000px"><tr>
<td style="height: 38px; width: 35px;">
ÐÕÃû</td>
......
ÎÒÊÇÔÚtoadÖÐÊäÈë϶Îsql
declare
TYPE test_rec IS record(
code varchar(10),
name varchar(30)
);
v_book test_rec;
......