instanceofDetects if an object is an array; (used to deal with complex data types;)Simple data type typeof;A instanceof b//A is not made of B;Cases:var arr = [n/a];Console.log (arr instanceof Array); The arr genus is not of type array;Array.isarray ()Array.isarray (parameter); Determines whether the parameter is an array, returns a Boolean value;Cases:var arr = [n/a];var num = 123;Console.log (Array.isarray (arr)); TrueConsole.log (Array.isarray (num)); FalseToString ()Array. toString (); Turns
({"_id":}, {$unset: {"test3": "Test"}});> Db.test0.find ({"_id": 15});{"_id": {"Floatapprox": +}, "Count": "Test4": "TESTV4", "Test5": "OK"}Do not see field:1 inside of 1 is what to use, anyway as long as there is something on the line.4) $pushUsage: {$push: {Field:value}}Append value To field, field must be array type, if field does not exist, a new array type will be added. Cases:> db.test0.update ({"_id":}, {$set: {"test1": ["AAA", "BBB"]}});> Db.
({"_id": 15});{"_id": {"Floatapprox": +}, "Count": "Test4": "TESTV4", "Test5": "OK"}Do not see field:1 inside of 1 is what to use, anyway as long as there is something on the line.4) $pushUsage: {$push: {Field:value}}Append value To field, field must be array type, if field does not exist, a new array type will be added. Cases:> db.test0.update ({"_id":}, {$set: {"test1": ["AAA", "BBB"]}});> Db.test0.find ({"_id": 15});{"_id": {"Floatapprox": "$", "C
Use FTP server software to set up a good FTP server, do not think that everything OK. We also need access to the information upload directory appropriate settings to ensure that each department employees can only use a specific account to log in, access to their respective information transfer directory, the following is the specific steps to set up:
First, follow the previous steps to open the Internet Information Services window, display the area to the left of the window, right-click the des
usernameALTER TABLE user change column name username varchar (40); Delete a tabledrop table user; Use the INSERT statement to insert information for three employees into a table.Rename table user to employee;INSERT into employee (Id,username,birthday,entry_date,job,salary,resume) VALUES (1, ' AAA ', ' 1980-09-09 ', ' 1980-09-09 ', ' BBB ', ' aaaaa ');SELECT * from employee; Insert the details of the data 1INSERT into employee values (1, ' AAA ', ' 19
contain "regexp" and the front and back rows, and add "regexp" before the first row
# Line number (similar to "grep-A1-B1 ")
Sed-n-e '/regexp/{=; x; 1! P; g; $! N; p; D;} '-e h
# Display rows containing "AAA", "BBB", or "CCC" (in any order)
Sed '/AAA /! D;/BBB /! D;/CCC /! D' # The string order does not affect the result
# Display rows containing "AAA", "
represented by bytes x: skipping directories on different file systems does not count a: recursively displaying the number of data blocks occupied by each file in the specified directory and its children's directories... use du to view root @ tech163:/home/htmlfile # du 16. /test 60. /bbb 84. the first column is the disk space capacity in blocks, and the second column lists the directory names that use these spaces in the directory. 1) Check the size
Delphi Tstringlist Usage Detailed.Tstringlist Common Methods and properties:varlist:tstringlist; I:integer;beginList:= Tstringlist.Create; List.add ('STRINGS1');{Add}List.add ('STRINGS2'); List.exchange (0,1);{Displacement}List.insert (0,'STRINGS3');{Insert}I:= List.indexof ('STRINGS1');{the first occurrence of the position}List.sort; {Sort}list.sorted:= True;{Specify sort}List.count; {Total}List.text; {Text Collection}List.delete (0);{Delete, 0 is the first data}List.loadfromfile ('C:/tmp.txt')
Recently, when using cold standby tar for Oracle Database migration, you need to filter out the files exported by datapump under the current database file, otherwise, a large tar file will be generated and the network transmission time will be consumed. In fact, the tar command provides us with the filter function,
Recently, when using cold standby tar for Oracle Database migration, you need to filter out the files exported by datapump under the current database file, otherwise, a large tar file
Angular's instructions are a good embodiment of modularity, below I will only use instructions (no controller), combined with REQUIREJS, to achieve modular development.Modular diagram:Traditional development methodsAAA Module -Div> H3>This is AAAH3> inputtype= "text"Ng-model= "ASD">{{ASD}}ButtonNg-click= "Submit ()">SubmitButton>Div>BBB Module -Div> H3>This is BBBH3> ul> Ling-repeat= "El in List">{{el}}Li> ul> CCC Module -
During development, we often use the built-in JDK keytool to create a self-issued certificate and save it to the keystore file. If you want to import a keystore to another keystore (such as installing it on another machine without overwriting files), what should you do?
For example, we import the content with the alias Tomcat from AAA. jks to BBB. jks. The illusion is that the certificate is first exported from AAA. jks and then imported to
# The BBB, CCC, and BNR subdirectories exist in the current tree directory. Now, you need to filter out the dump file of gz, that is, you do not need to package [oracle @ linux1 ~]. $ Tree AAAAAA | -- BBB | '-- SYTST_temp.dbf | -- BNR | -- dump | -- emp.dmp.gz | -- tb.dmp.gz |' -- xx.dmp.gz | '-- full | -- CCC | '-- tempSYTST. dbf | -- SYTST. sh' -- initSYTST. ora5 directories, 7 files
# Method 1: Filter U
For example, if you have such a requirement, a table named User_Salary contains the UserName of each user)
Calculate a result set: the sum of the salaries and accumulated salaries of each person per month, as shown in the following table.
UserName
Month
Salary
AAA
2010/12
1000
AAA
2011/01
2000
AAA
2011/02
3000
BBB
2010/12
2000
BBB
Array API
Api:application programming Interface, application programming interface;
JS in the object provided by the method is called the API;
instanceof检测一个对象是否是数组;(用来对付复杂数据类型;)// 简单数据类型 typeof ;A instanceof B // A是不是B造出来的;例: var arr = [1,2,3]; console.log(arr instanceof Array); //arr属不属于Array类型;Array.isarray ()Array.isArray(参数); // 判断参数是不是数组,返回布尔值;例: var arr = [1,2,3]; var num = 123; console.log(Array.isArray(arr)); //true console.log(Array.isArray(num)); /
How to efficiently split a field into multiple rows I originally split a field in the table into multiple rows, such as aaa and bbb into aaabbb. Now the test is as follows: [SQL] witht1as (select3c1, eee, fff, gggc2fromdualUNIONALLselect2c1, ccc, dddc2fromdualUNIONALLSELECT1c1, aaa, bbbc2F
How to efficiently split a field into multiple rows I meant to split a field in the table into multiple rows. For example, splitting aaa and
directly to indicate the number of rows to be operated. sed '2d 'aaa.txt must be used to delete the second line in the aaa.txt file. The regular expression must be used to separate the two backslashes. sed '/^ Tom/d' aaa.txt # trim deletes the line starting with Tom in aaa.txt * if no range is specified, full text will be manipulated. sed 'd 'aaa.txt # delete all rows in aaa.txt
1. sed '$ d' aaa.txt # Delete the last row in aaa.txt (operate on a single row)2. sed '7, 9d' aaa.txt # Delete the se
The usage of Delphi tstringlist tstrings is an abstract class. In actual development, tstrings have the most applications besides the basic types.
We all know the general usage. Now we will discuss some of its advanced usage.
First, list the several attributes to be discussed:
1. commatext
2. delimiter delimitedtext
3. First read the names Values valuefromindex: commatext. How to use it? Use code to speak:
Const
Constr: String = 'aaa, BBB, CCC, DDD
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.