版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
geodatabasetopologymustnothavegaps:單要素類,連續(xù)連接的多邊形區(qū)域中間不能有空白區(qū)(非數(shù)據(jù)區(qū)containspoint:多邊形+點(diǎn),多邊形要素類的每個要素的邊界以內(nèi)必須包含點(diǎn)層中至少一疊的要素)mustbecoveredbyfeatureclassof:多邊形+多邊形,第一個多邊形層必須被第二個完全areaboundarymustbecoveredbyboundaryof:多邊形+多邊形,第一個多邊形的各要素必須為第二個的一個或幾個多邊形完mustbecoveredbyboundaryof:點(diǎn)+多邊形,點(diǎn)必須在多邊形的邊界上topology1.mustnothavedanglemustnotselfintersect*7.mustnotintersectortouchinterrior:線,不能有相交和mustbesinglepartpathmustnotcoveredwithmustbecoveredbyfeatureclassof:線+線,兩層線完全endpointmustbecoveredby:線+點(diǎn),線層中的終點(diǎn)必須和點(diǎn)層的部分(或全部)點(diǎn)重mustbecoveredbyboundaryof:線+多邊形,線被多邊形邊界mustbecoveredbyendpointofpointmustbecoveredbyline:點(diǎn)+線,點(diǎn)都Geoatabase組織結(jié)構(gòu)ArcGISArcGIS2010-04-1211:39:18|ArcGIS|字號大中小我在際圖處中一圖要滿一的要 的系如次 的類斑能行區(qū)外圖不相互 ,些定圖之關(guān)我可定一拓規(guī)來以限制。拓?fù)湟?Point-Area):Mustbecoveredbyboundaryof,(原始解釋:點(diǎn)必須在多邊形邊界上。)拓?fù)涠篗ustbecoveredbyendpointof,(原始解釋:點(diǎn)要素必須位于線要素的端點(diǎn)上。)例規(guī)則三:Pointmustbecoveredbyline,(原始解釋:點(diǎn)要素必須 規(guī)則四:Mustbeproperlyinsidepolygons,(原始解釋:點(diǎn)要素必須在多邊形要素內(nèi),在邊界上規(guī)則一:Mustnotoverlap,在同一層要素類中(同一層之間的關(guān)系),線與線不能相互 規(guī)則二:Mustnotintersect,同一層要素中,線與線不能 規(guī)則三:Mustbecoveredbyfeatureclassof,同一層中某個要素類中的線段必須被另一要素類中規(guī)則四:Mustnotoverlapwith,兩個線要素類中的線段不 規(guī)則五:Mustbecoveredbyboundaryof,線要素必須被多邊形要素的邊界覆蓋(線與多邊形之間規(guī)則六:Mustnothavedangles,不允許線要素有懸結(jié)點(diǎn),即每一條線段的端點(diǎn)都不能孤立,必須規(guī)則七:MustnothavePseudos,不能有偽結(jié)點(diǎn),就是一條線段中間不能有斷點(diǎn)。修正方法:將偽規(guī)則八:Mustnotself-overlap,線要素不能和自 規(guī)則九:Mustnotselfintersect,線要素不能自相交,就是不能和自己攪在一起。修正方法:在自規(guī)則十:Mustbesinglepart,線要素必須單獨(dú),不能聯(lián)合。但若是兩條線首尾相連接,這時候Merge操作后產(chǎn)生的是一條線了,這時候是不會報錯的。但是分開的兩條線進(jìn)行Merge操作,這時候就規(guī)則十一:Mustnotintersectortouchinterior,線和線不能交叉,端點(diǎn)不能和非端點(diǎn)接觸(非接觸點(diǎn)部分相互是允許的),兩條線相交時(兩條線)必然有斷點(diǎn)。修改方法:剪斷沒有斷點(diǎn)的線,(不規(guī)則十二:Endpointmustbecoveredby,線要素的端點(diǎn)被點(diǎn)要素覆蓋。修正方法:增補(bǔ)新的點(diǎn)要規(guī)則一:Mustnotoverlap,同一多邊形要素類中多邊形之間不能 規(guī)則二:Mustnothavegaps,多邊形之間不能有空隙(同層之間的拓?fù)潢P(guān)系)。例如:一個土地規(guī)則三:Mustnotoverlapwith,一個要素類中的多邊形不能與另一個要素類中的多邊形 規(guī)則四:Mustbecoveredbyfeatureclassof,多邊形要素中的每一個多邊形都被另一個要素類中規(guī)則五:Mustcovereachother,兩個要素類中的多邊形要相互覆蓋,外邊界要一致(層與層之間規(guī)則六:Mustbecoveredby,每個多邊形要素都要被另一個要素類中的單個多邊形覆蓋。例如, 規(guī)則七:Boundarymustbecoveredby,多邊形的邊界必須和線要素的線段重合(面與線之間的關(guān)規(guī)則八:Areaboundarymustbecoveredbyboundaryof,某個多邊形要素類的邊界線在另一個多在arcgis常見的疊加分析情況匯(Clip)、更新疊加(Update)、對稱差(SymmetricalDifference)、分割(Split)、mergeunion素,新要素的屬性為系統(tǒng)默認(rèn)值(0)。mergeunionarctoolbox交集(Intersect)ArcToolBoxIntersectFIDFIDEditorToolIntersectArcToolBoxIntersectinputfeaturespoint、line、polygon,不能是復(fù)雜annotation、networkinputfeatures(pointpolygon、linepolygon),linepolygonline,pointlinepointpolygonpolygonpolygonlinepoint。結(jié)果可能有多部件要素(multipartfeatures)multiparttosingleparterase(multipartfeatures),可用multiparttosinglepartArcGIS來。該工具只能在擁有ArcInfo的時候才能使用。它的功能是,將輸入特征與標(biāo)識疊Intersectinputfeatures,identityfeaturespolygon結(jié)果可能有多部件要素(multipartfeatures)multiparttosinglepartkeep_relationshipsinputfeaturesidentityfeaturesinputfeatureslineleft_polyright_polyidentityfeaturesfid裁減(Clip),這個工具最能讓人與Erase工具弄混了,與Erase功能相反,它保留了輸入特征與裁減特征相重的部分。Clip工 coverages(裁減Coverages需要有ArcInfo級的)。需要注意的是在EditorTool中也有Clip這樣的一個工具,其功能與矢量疊加中的Clip功能并不相同,它既可以保留相重部分,也可以減去相重的部分。當(dāng)然,EditorTool中的Clip就不屬于我們這里討論的updatefeatures結(jié)果可能有多部件要素(multipartfeatures)multiparttosinglepartinputfeaturesupdatefeaturespolygonborders,updatefeaturesupdatefeaturesborders選項未選中時,updatefeaturesinputfeatures在一起,形成的幾個要素,要素的個數(shù)和updatefeatures的要素的個數(shù)形同,updatefeatures對稱差(SymmetricalDifference),即計算輸入特征與更新特征不相交的部分形成結(jié)果文件的屬性表根據(jù)joinattributes選項的不同而不同。當(dāng)選項為no_fid時,將inputfeaturesupdatefeatures屬性表fid外的所有字段傳遞到結(jié)果的屬性表only_fidinputfeaturesupdatefeaturesfidallinputfeaturesupdatefeaturesinputfeaturesupdatefeaturesfid_fa1inputfeaturesupdatefeaturesinputfeaturesupdatefeaturespolygonUpdateUnionupdateupdate屬性表:unionall、no_fidonly_fid。allfid。同名的字段(fid)在字段名后加數(shù)字以示區(qū)別(fid)。no_fidfidonly_fidfidfid添加(Append),合并輸入要素類、表、柵格影像及柵格到一個已有的要素類、表、柵格影像及柵格中。感覺上是將幾個圖層合并成一個圖層,可以把相互重合的部字段名、類型、排列順序必須完全相同,當(dāng)schematype選項為no_test時可以不同。圖形:append可以合并點(diǎn)、線、多邊形等要素類和表、柵格影像及柵格 同類型的。append不處理要素,只簡單地把要素放到一個要素類里,因此輸出的要素類可合并(Merge),SplitAppendAppend容許操作的數(shù)據(jù)有相的部分,而Merge一般只操作相鄰的對象。圖形:mergemerge要素,只簡單地把要素放到一個要素類里,因此輸出的要素類可能會有或縫隙。屬性表:mergefidmergeArcMapJoinsandRelates”-->“Join...”,在彈出的框中,第一個下拉框選擇“Joindatafromanotherlayerbasedonspatial輸出圖層名稱,點(diǎn)擊“OK”Arcgis根據(jù)空間位置選擇面圖層“compleycontain”點(diǎn)圖層,這樣包含點(diǎn)的那些區(qū)就被選中了,然后再反選(switchselection),把后來聯(lián)接上的字段值均設(shè)為空即可。。(Clip)、更新疊加(Update)、對稱差(SymmetricalDifference)、分割(Split)、mergeunion素,新要素的屬性為系統(tǒng)默認(rèn)值(0)。mergeunionarctoolbox交集(Intersect)ArcToolBoxIntersectFIDFIDEditorToolIntersectArcToolBoxIntersectinputfeaturespoint、line、polygon,不能是復(fù)雜annotation、networkinputfeatures(pointpolygon、linepolygon),linepolygonline,pointlinepointpolygonpolygonpolygonlinepoint。結(jié)果可能有多部件要素(multipartfeatures)multiparttosingleparterase(multipartfeatures),可用multiparttosinglepartArcGIS來。該工具只能在擁有ArcInfo的時候才能使用。它的功能是,將輸入特征與標(biāo)識疊Intersectinputfeatures,identityfeaturespolygon結(jié)果可能有多部件要素(multipartfeatures)multiparttosinglepartkeep_relationshipsinputfeaturesidentityfeaturesinputfeatureslineleft_polyright_polyidentityfeaturesfid裁減(Clip),這個工具最能讓人與Erase工具弄混了,與Erase功能相反,它保留了輸入特征與裁減特征相重的部分。Clip工 coverages(裁減Coverages需要有ArcInfo級的)。需要注意的是在EditorTool中也有Clip這樣的一個工具,其功能與矢量疊加中的Clip功能并不相同,它既可以保留相重部分,也可以減去相重的部分。當(dāng)然,EditorTool中的Clip就不屬于我們這里討論的updatefeatures結(jié)果可能有多部件要素(multipartfeatures)multiparttosinglepartinputfeaturesupdatefeaturespolygonborders,updatefeaturesupdatefeaturesborders選項未選中時,updatefeaturesinputfeatures在一起,形成的幾個要素,要素的個數(shù)和updatefeatures的要素的個數(shù)形同,updatefeatures對稱差(SymmetricalDifference),即計算輸入特征與更新特征不相交的部分形成結(jié)果文件的屬性表根據(jù)joinattributes選項的不同而不同。當(dāng)選項為no_fid時,將inputfeaturesupdatefeatures屬性表fid外的所有字段傳遞到結(jié)果的屬性表only_fidinputfeaturesupdatefeaturesfidallinputfeaturesupdatefeaturesinputfeaturesupdatefeaturesfid_fa1inputfeaturesupdatefeaturesinputfeaturesupdatefeaturespolygonUpdateUnionupdateupdate屬性表:unionall、no_fidonly_fid。allfid。同名的字段(fid)在字段名后加數(shù)字以示區(qū)別(fid)。no_fidfidonly_fidfidfid添加(Append),合并輸入要素類、表、柵格影像及柵格到一個已有的要素類、表、柵格影像及柵格中。感覺上是將幾個圖層合并成一個圖層,可以把相互重合的部字段名、類型、排列順序必須完全相同,當(dāng)schematype選項為no_test時可以不同。圖形:append可以合并點(diǎn)、線、多邊形等要素類和表、柵格影像及柵格 同類型的。append不處理要素,只簡單地把要素放到一個要素類里,因此輸出的要素類可合并(Merge),SplitAppendAppend容許操作的數(shù)據(jù)有相的部分,而Merge一般只操作相鄰的對象。圖形:mergemerge要素,只簡單地把要素放到一個要素類里,因此輸出的要素類可能會有或縫隙。屬性表:mergefidmerge 開啟輔助切換到寬版切換風(fēng)hejinxia |||提醒(1)|積分40|用戶組:快捷導(dǎo) 華 熱搜:浙江地圖全圖地圖全圖頁巖氣是什么ps請輸入搜 簡易地圖arcgis10 石人溝鐵礦吧micromine廣西地 質(zhì)圖我的世界鐵礦鉆孔柱狀圖非洲坐請輸入搜綿陽地圖sectionarcglobe全年氣溫曲線水文地質(zhì)單元arcsde華夏土地網(wǎng)?華夏?D相關(guān)軟件?ArcGIS+?開發(fā)專區(qū)?sql語句大全查看510|回復(fù)查看510|回復(fù)9090 好友積分112011-5-1214:18:24||倒序瀏覽SQL--SELECT從數(shù)據(jù)庫表中檢索數(shù)據(jù)行和列INSERT--向數(shù)據(jù)庫表添加新數(shù)據(jù)行DELETE--從數(shù)據(jù)庫表中刪除數(shù)據(jù)行UPDATE--更新數(shù)據(jù)庫表中的數(shù)據(jù)CREATETABLE創(chuàng)建一個數(shù)據(jù)庫表DROPTABLE--從數(shù)據(jù)庫中刪除表ALTERTABLE--修改數(shù)據(jù)庫表結(jié)構(gòu)CREATEVIEW--創(chuàng)建一個視圖DROPVIEW從數(shù)據(jù)庫中刪除視圖CREATEINDEX為數(shù)據(jù)庫表創(chuàng)建一個索引DROPINDEX--從數(shù)據(jù)庫中刪除索引CREATETRIGGER--創(chuàng)建一個觸發(fā)器DROPTRIGGER從數(shù)據(jù)庫中刪除觸發(fā)器CREATESCHEMA--向數(shù)據(jù)庫添加一個新模式DROPSCHEMA--從數(shù)據(jù)庫中刪除一個模式 GRANT--授予用戶權(quán)DENY--用戶REVOKE--解除用戶權(quán)------EXN--為查詢描述數(shù)據(jù)計劃OPEN檢索查詢結(jié)果打開一個游標(biāo)FETCH--檢索一行查詢結(jié)果PREPARESQL語句EXECUTE--SQL語句DESCRIBE--描述準(zhǔn)備好的查詢declare@id--set@id= select@id= --IFdeclare@xint@yint@zintselect@x=1@y=2@z=3if@x>printxy'打印字符串'xy'elseif@y>@zprint'y>elseprint'z>usepanguupdateemployeesete_wage=whenjob_level=’1’thene_wage*1.08whenjob_level=’2’thene_wage*1.07whenjob_level=’3’thene_wage*1.06elsee_wage*1.05--WHILECONTINUEdeclare@xint@yint@cintselect@x=1@y=1while@x<3print@xxwhile@y<3select@c=100*@x+print@ccselect@y=@y+1select@x=@x+1select@y=1--123SELECTwaitfordelay’01:02:03’select*from--118SELECTwaitfortime’23:08:00’select*fromselect*(列名)fromtable_name(表名)wherecolumn_nameoperatorvalueselect*fromstock_informationwherestockid=str(nid)stockname='str_name'stocknamelike'%findthis'[ '[ 只能在使用like關(guān)鍵字的where子句中使用通配符orstockpath='stock_path'orstocknumber<1000andstockindex=24notstock***=stocknumberbetween20and100stocknumberin(10,20,30)orderby bystockname=(selectstocknamefromstock_informationwherestockid=4) whereinselectdistinctcolumn_nameform selectstocknumber,"stocknumber+10"=stocknumber+10fromtable_nameselectstockname,"stocknumber"=count(*)fromtable_namegroupbystocknamegroupby將表按行分組,havingcount(*) havingselectfromtable1,wheretable1.id*= 左外部連接,table1table2nulltable1.id=* selectstocknamefromunion union合并查詢結(jié)果集,all-selectstocknamefrominsertintotable_name(Stock_name,Stock_number)valuevalue(selectStockname,StocknumberfromStock_table2)valueselect語句updatetable_namesetStockname="xxx"[whereStockid=3]Stockname=defaultStockname=Stocknumber=Stockname+deletefromtable_namewhereStockid= droptable ***alter altertabledatabase.owner.table_nameaddcolumn_namechar(2)nullsp_help createtabletable_name(namechar(20),agesmallint,lnameinsertintotable_nameselect altertabletable_namedropconstraintStockname_defaultStocknamedefaultAVG--求平均值COUNT統(tǒng)計數(shù)目MAX--求最大值MIN--求最小值SUM--求和useselectavg(e_wage)asfromemployeegroupbyusepanguselecte_namefromemployeewheree_wage(selectmax(e_wage)fromemployee)SIN(float_expression)--返回以弧度表示的角的正弦COS(float_expression返回以弧度表示的角的余弦)--ASIN(float_expressionFLOAT值的以弧度表示ACOS(float_expression)--返回余弦是FLOAT值的以弧度表ATAN(float_expression)--FLOAT值的以弧度表RADIANS(numeric_expression把角度轉(zhuǎn)換為弧度返回與表EXP(float_expression)--返回表達(dá)式的指數(shù)值LOG(float_expression返回表達(dá)式的自然對數(shù)值LOG10(float_expression)--返回表達(dá)式的以10)--CEILING(numeric_expression)--返回>=表達(dá)式的最小整數(shù)返FLOOR(numeric_expression)--返回<=表達(dá)式的最小整數(shù)返ROUND(numeric_expressioninteger_expression為--類型與表達(dá)式相同可為INTEGER/MONEY/REAL/FLOAT類ABS(numeric_expression返回表達(dá)式的絕對值返回的數(shù)據(jù)SIGN(numeric_expression)--01正數(shù)或-1PIπRAND([integer_expression用任選的[integer_expression]做值得出0-1間的隨機(jī)浮點(diǎn)數(shù)ASCIIASCIICHARASCII--0~255ASCIICHAR函數(shù)會返NULL值LOWER()--函數(shù)把字符串全部轉(zhuǎn)換為小寫UPPER()--函數(shù)把字符串全部轉(zhuǎn)換為大寫STR函數(shù)把數(shù)值型數(shù)據(jù)轉(zhuǎn)換為字符型數(shù)據(jù)LTRIM()--函數(shù)把字符串頭部的空格去掉RTRIM()--函數(shù)把字符串尾部的空格去掉()--CHARINDEX(),PATINDEX函數(shù)返回字符串中某個指定的子()--0DIFFERENCESOUNDEX函數(shù)返回的兩個字符--0SOUNDEX--1SOUNDEX--2SOUNDEX--3SOUNDEX--4SOUNDEX()--/*selectquotename('abc','{'){{abc}REPLICATEcharacter_expression指定/*selectreplicate('abc',3)replicate('abc',-abcabcabcREVERSE()--函數(shù)將指定的字符串的字符排列順序顛倒 CE()--函數(shù)返回被替換了指定子串的字符串/*selectrece('abc123g','123',)--CAST()函數(shù)語法如下CASTexpressionASdata_type>[lengthCONVERT()函數(shù)語法如下CONVERT()(<data_type>[length],<expression>[,style])selectcast(100+99ascharconvert(varchar(12)getdate())199Jan15DAY()--date_expression中的日期值MONTH(date_expression中的月份值YEAR()--date_expression中的年份值DATEADD(<datepart>,<number>,<date>)函數(shù)返回指定日期date加上指定的額外日期間隔number--datepart方面的不同之處DATENAME(<datepart<date>)函數(shù)以字符串的形式返回DATEPART(<datepart>,<date>)--函數(shù)以整數(shù)值的形式返回GETDATEDATETIME的缺省格式返回系統(tǒng)當(dāng)前的APP_NAME()--函數(shù)返回當(dāng)前執(zhí)行的應(yīng)用程序的名稱COALESCE()--函數(shù)返回眾多表達(dá)式中第一個非NULL表達(dá)COL_LENGTH(<'table_name'>,<'column_name'>)--函數(shù)返回COL_NAME(<table_id>column_id>函數(shù)返回表中指定字DB_ID(['database_name'])--函數(shù)返回數(shù)據(jù)庫的編號DB_NAME(database_id)--函數(shù)返回數(shù)據(jù)庫的名稱HOST_ID()--函數(shù)返回服務(wù)器端計算機(jī)的名稱HOST_NAME()--函數(shù)返回服務(wù)器端計算機(jī)的名稱IDENTITY(<data_type>[,seedincrement])[AS--IDENTITY()SELECTINTO語句中使用用于插入一identitycolumn列到新表中/*selectidentity(int,1,1)ascolumn_nameintonewtablefromISNULL(<check_expression>,<recement_value>)--函數(shù)將NULL值用指定值替換ISNUMERIC函數(shù)判斷所給定的表達(dá)式是否為合理的數(shù)值NEWID()--UNIQUEIDENTIFIER類型的數(shù)值NULLIF(<expression1>,<expression2>)--NULLIF函數(shù)在expression1與expression2相等時返回NULLexpression1sqlactionaddaggregateallalterafterandasascavgavg_row_lengthauto_incrementbetweenbigintbitbinaryblobboolbothcascadecasecharcharacterchangecheckchecksumcolumncolumnscommentconstraintcrosscurrent_datecurrent_timecurrent_timestampdatadatabasedatabasesdatedatetimedayday_hourday_seconddayofmonthdayofweekdayofyeardecdecimaldefaultdelayeddelay_key_writedeletedescdescribedistinctdistinctrowdoubledropendelseescapeenclosedenumexinexistsfieldsfilefirstfloatfloat4float8flushforeignfromforfullfunctionglobalgrantgrantshavingheaphigh_priorityhourhour_minutehour_secondhostsidentifiedignoreinindexinfileinnerinsertinsert_idintintegerintervalint1int2int3int4int8intoifisisamkeykeyskilllast_insert_idleadingleftlengthlikelineslimitloadlocklogslonglongtextlow_prioritymaxmatchmediumblobmediumtextmediumintmiddleintmin_rowsminuteminute_secondmodifymonthmonthnamemyisamnaturalnumericnonotnullonoptimizeoptionoptionallyororderouteroutfilepack_keyspartialpasswordprecisionprimaryprocedureprocessprocesslistprivilegesreadrealreferencesreloadregexprenamerecerestrictreturnsrevokerlikerowrowsselectsetshowsmallintsonamesql_big_tables sql_small_resultsql_big_resultsql_warningsstraight_joinstartingstatusstringtabletablestemporaryterminatedthentimetimestamptinyblobtinytexttinyinttrailingtotypeuseusingunlockunsignedupdateusagevaluesvarcharvariablesvaryingvarbinarywithwritewhenwhereyearyear_monthzerofillSQLASP編程SQLsql="select*fromwhere字段名=order字段名sql="select*from數(shù)據(jù)表where字段名like%字段值%orderby字段名[desc]"sql="selecttop10*from數(shù)據(jù)表where字段名order字段名sql="select*fromwherein1,2,3)"sql="select*fromwherebetween值1and2"sql="update數(shù)據(jù)表set字段名=字段值where條件表達(dá)sql="updateset1=1,2=2……n=nwhere條件表達(dá)式sql="deletefrom數(shù)據(jù)表where條件表達(dá)式"sql="deletefrom數(shù)據(jù)表將數(shù)據(jù)表所有記錄刪除)sql="insertinto(1,2,3valuess(值1,2,3…)"sql="insertintoselect*from源數(shù)據(jù)表"(把源AVG(字段名)COUNT(*|字段名)對數(shù)據(jù)行數(shù)的統(tǒng)計或?qū)δ骋粰谟兄档臄?shù)MAX(字段名)取得一個表格欄最大的值MIN(字段名)取得一個表格欄最小的值SUM(字段名)把數(shù)據(jù)欄的值相加sql="selectsum(字段名)asfromwhere條件setrs("別名")CREATETABLE數(shù)據(jù)表名稱(11(長度),2類2(長度)……)例:CREATETABLEtab01(namevarchar(50),datetimedefaultDROPTABLE(永久性刪除一個數(shù)據(jù)表ASPAccess<%@language=VBsdimset "driver={access (*.mdb)};uid=admin;pwd=數(shù)據(jù)庫;dbq="&mdbfileASPSQL<%@language=VBsdimsetcon.open" 器名稱或IP地址;UID=sa rs.openSQL語句,conn,3,2rs.movenext將記錄指針從當(dāng)前的位置向下移一行rs.moveprevious將記錄指針從當(dāng)前的位置向上移一行rs.movefirst將記錄指針移到數(shù)據(jù)表第一行rs.movelast將記錄指針移到數(shù)據(jù)表最后一行rs.absoluteposition=NN行rs.absolutepage=NN頁的第一行rs.pagesize=NN條記錄rs.pagecountpagesizers.recordcountrs.bof返回記錄指針是否超出數(shù)據(jù)表首端,truefalsers.eof返回記錄指針是否超出數(shù)據(jù)表末端,truefalsers.deleters.addnewrs.update更新數(shù)據(jù)表記錄AddNew、UpdateDelete等方法adLockPrssimistic2當(dāng)數(shù)據(jù)源正在更新時,系統(tǒng)會暫時鎖住adLockOptimistic3當(dāng)數(shù)據(jù)源正在更新時,系統(tǒng)并不會鎖住adLockBatchOptimistic4當(dāng)數(shù)據(jù)源正在更新時,其他用戶必須將CursorLocationadUdeBatch才能對數(shù)據(jù)MSSQL按姓氏筆畫排序:Select*FromTableNameOrderByCustomerNameCollate_PRC_Stroke_ci_as數(shù)據(jù)庫加密:selectencrypt('原始')selectpwdencrypt('原始') pare('原始','加密后')=1--相同否則不相同encrypt('原始') pare('原始','加密后')=1--相同否則:declare@listvarchar(1000),@sqlselect@list=@list+','+fromsysobjectsa,syscolumnsbwherea.id=='A'set@sql='selectright(@list,len(@list)-1)fromA'exec(@sql)比較 表是否相等:if checksum_agg(binary_checksum(*))fromA)=(selectchecksum_agg(binary_checksum(*fromB)print'相等'print不相等 探察器進(jìn)程ECLAREhcforeachCURSOR WHEREprogram_nameIN('SQLprofiler',N'SQL探查器')EXECsp_msforeach_worker'?'記錄搜索:NSelectTopN*FromNM條記錄(ID)SelectTopM-N*FromWhereIDinSelectTopMIDFrom表OrderbyIDNSelectTopN*FromOrderbyID:sp_renamedb'old_name',9:獲取當(dāng)前數(shù)據(jù)庫中的所有用戶表selectNamefromsysobjectswherextype='u'andstatus>=010selectnamefromsyscolumnswhereid=object_id('表名')、fromsysobjectsa, mentsbwherea.id=b.idandb.textlike'%表名%'、程名稱fromsysobjectswherextype='P'select*frommaster..sysdatabasesDwheresidnotin(selectsidfrommaster..sysloginswherename='sa')selectdbid,nameASDB_NAMEfrommaster..sysdatabaseswheresid<>0x01selectcolumn_name,data_typefrominformation_schema.columnswheretable_name='表名'[n].[標(biāo)題]:Select*FromTableNameOrderByCustomerName[n].[標(biāo)題]:Select*FromTableNameOrderByCustomerNamefrom:觸發(fā)器-MSSQL常用操作人:kendy517|時間:2007年二月09日,SQLServer里面也就是對某一個表Insert,Update,Delete。(SQLServer2000定義了新的觸發(fā)器,這里不提)CreateTableStudent(--學(xué)生表StudentIDintprimarykey學(xué)號)CreateTableBorrowRecord學(xué)生借書記錄表BorrowRecordintidentity(1,1),--流水號StudentIDint,--學(xué)號BorrowDatedatetime,借出時間--)CreateTriggertruStudentOnStudentforUpdateifUpdate(StudentID)UpdateSetFromBorrowRecordbr,Deletedd,InsertediWherebr.StudentID=d.StudentIDDeleted與Inserted分別表示觸發(fā)的表“舊的一條記錄”CreatetriggertrdStudentOnStudentforDeleteDeleteFromBorrowRecordbr,DelteddWhere解決一個拓?fù)浔磺卸鄠€屬性合并的問SubApplication.ScreenUpdating=FalseDimi,jAsIntegerDimxRngAsSetxRng=Fori=2ToIfWorksheetFunction.CountIf(xRng,Range("A"&i))=1Thenj=WorksheetFunction.Match(Range("A"&i),xRng,0)Range("F"&j)=Range("F"&j)&";"&Range("B"&j=Range("E999").End(xlUp).Row+Range("A"&i&":B"&i).CopyRange("E"&j)EndIfNextc2意思是在A列匹配A2數(shù)值,如果能找到就執(zhí)行后面的,后面的意思是在在A列查找A2CA2數(shù)值,就顯示BA列的B拓1、(mustnot2、不許有間隔(mustnothavefeature3、要素類間(mustnotoverlapwith)4、必須被要素類覆蓋(mustbecoveredbyfeatureclass5、必須相互覆蓋(mustcovereach6、必須被覆蓋(mustbecovered7、邊界必須被覆蓋(boundarymustbecovered8、區(qū)域邊界必須被其他邊界覆蓋(areaboundarymustbecoveredbyboundary1、(mustnot2、相交(mustnot3、不許存在懸掛(mustnothave(extend4、不許存在偽節(jié)點(diǎn)(mustnothave合并到最大的要素上(mergetolargest):合并(merge):對于不符合規(guī)則的要素,merge方法將一個線狀要素的幾何屬性添加到另一5、在內(nèi)部相交或者相連(mustnotintersectortouch6、不許(mustnotoverlap7、必須被其他要素類中的要素覆蓋(mustbeconveredbyfeatureclassof)8、必須被其他邊界覆蓋(mustbecoveredbyboundary9、端點(diǎn)必須被覆蓋(endponitmustbeconvered10、不能自我(mustnotself11
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026新疆阿克蘇地區(qū)拜城縣產(chǎn)業(yè)園區(qū)國企招聘考試備考試題及答案解析
- 中國標(biāo)準(zhǔn)化研究院質(zhì)量研究分院信用標(biāo)準(zhǔn)化研究崗企業(yè)編制職工招聘2人考試參考試題及答案解析
- 2026湖南張家界市永定區(qū)民政局招聘公益性崗位工作人員5人考試備考試題及答案解析
- 2026四川成都市現(xiàn)代種業(yè)發(fā)展集團(tuán)成都農(nóng)業(yè)開發(fā)有限公司社會化招聘5人考試參考試題及答案解析
- 2026四川綿陽虹源科技發(fā)展有限責(zé)任公司招聘品保部長崗位1人考試備考題庫及答案解析
- 2026內(nèi)蒙古包頭市昆都侖區(qū)招聘社區(qū)工作者后備庫儲備人員200人筆試備考試題及答案解析
- 2026山東第一醫(yī)科大學(xué)附屬皮膚病醫(yī)院招聘博士研究生工作人員3人考試備考試題及答案解析
- 2026湖南興湘科技創(chuàng)新有限公司招聘1人筆試備考題庫及答案解析
- 2026年哈密職業(yè)技術(shù)學(xué)院單招職業(yè)技能考試模擬試題帶答案解析
- 2026年杭州師范大學(xué)招聘65人備考題庫(冬季)及1套完整答案詳解
- 海水淡化PX能量回收裝置維護(hù)說明書
- 林規(guī)發(fā)防護(hù)林造林工程投資估算指標(biāo)
- 婦產(chǎn)科學(xué)(第9版)第二章女性生殖系統(tǒng)解剖
- GB/T 23821-2022機(jī)械安全防止上下肢觸及危險區(qū)的安全距離
- 中醫(yī)經(jīng)絡(luò)之-特定穴課件
- GB/T 9122-2000翻邊環(huán)板式松套鋼制管法蘭
- GB/T 5563-2013橡膠和塑料軟管及軟管組合件靜液壓試驗方法
- GB/T 4963-2007聲學(xué)標(biāo)準(zhǔn)等響度級曲線
- 金融支付清算系統(tǒng)術(shù)語大全(中英文對照)
- GA/T 765-2020人血紅蛋白檢測金標(biāo)試劑條法
- 江蘇省學(xué)業(yè)水平合格性考試復(fù)習(xí)課件:中外歷史綱要上冊主要考點(diǎn)線索梳理
評論
0/150
提交評論