When you upgrade the. NET Framework from version 4.5.0 to 4.5.2 with VS2015, the following error follows:
Description: An error occurred during the compilation of resources required to provide services to the request. Please check the following specific error details and modify the source code appropriately.Compiler error message: CS1617: Option "6" is not valid for/langversion; must be ISO-1, ISO-2, 3, 4,
Large water problem. To find the solution is good to do. The following is my own way of thinking, I feel quite biased, but very simple. The original question is no longer repeat. For example, the leaf is the "00000111" of UVA for Query "" "" 010 "" "" "" "" "" Convert to Decimal, is the value of the variable in the leaf; 0, 2, 7, 6 the corresponding output is "0011". Think about it and that's it.
//s
(1) to Robomongo official website download, official website address (https://robomongo.org/) Select the appropriate version.(2)
Tar-xzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
CD Robo3t-1.2.1-linux-x86_64-3e50a65 (if you move to a different directory, add the appropriate directory.) )
After extracting, save the Robomongo folder in a common software folder, because Robomongo will start directly from this folder.(3) Start Robomongo, go to B
# The save method is similar to the insert method, which inserts data, but the save method automatically updates the database when the primary key is the same. c1.save ({_ id: 1, name: user7}); # Delete the database whose name is user1. c1.remove ({name: user1}); # insert data in batches for (i1; i20; I ++) {db. c1.insert ({name: user + I, age: I})} # query Structure
# The save method is similar to the insert method, which inserts data, but the save method automatically updates the database when
);Db.customer.find (). Sort ({age:-1}). Skip (2). Limit (3). Count ();Db.customer.find (). Sort ({age:-1}). Skip (2). Limit (3). Count (0);Db.customer.find (). Sort ({age:-1}). Skip (2). Limit (3). Count (1); 5. Querying a document in a collection, $all is primarily used to query the containing relationship in an array, and the query condition does not return as
:" 123456", roles:["root"]})3. Change user Password>db.changeuserpassword ("username","newpassword");4. View user Information>db.runcommand ({userInfo:"username"}){ "OK":0, "errmsg":"no such command:userinfo", "Code": -, "Bad cmd" : { "UserInfo":"username" }}5. Login$mongo- u username-p password--authenticationdatabase admin6. Verify the user, the Auth method verifies that by returning the value 1, the error returns 0.>db.auth ("username","password")
": false, "Numindexesbefore": 1, "num Indexesafter ": 2," OK ": 1} #由上可以看出创建了一个基本的单列索引 2, composite index creation > Db.c1.createIndex ({newname:1,age:-1}) 3, unique index The primary function of creating a unique index is only allowed for field values the only common syntax is: Db.c1.ensureIndex (Keypattern[,options])-DEPRECATED, use CreateIndex () instead> Db.c1.ensureIndex ({num:1},{unique:true})Second,
I encountered:I also learn through the above steps to connect MongoDB, but encountered a lot of difficulties, below I tell you how I solved:First of all, I unzipped. Start the service with the start name above and encounter this problem:I checked the Internet: basically is the answer to not correctly exit MongoDB, is to delete the Mongo.lock file in the database, but I opened the database storage path, but
Label:1. Use of "$inc" mainly used to increase the value, such as the number of site visits, clicks, traffic, etc. 1Db.games.insert ({game:"Pinball", User:"Joe"})
2 Db.games.find ()3Db.games.update ({"Game":"Pinball","User":"Joe"},{"$inc":{"score": -}})
4Db.games.update ({"Game":"Pinball","User":"Joe"},{"$inc":{"score":10000}}) The results of the operation were 1 /*1*/
2 {
3 "_id": ObjectId ("575a37da8
Tag:io use spon data div bsctiad Database common commands 1, help view command prompt help db.help (); db.yourColl.help (); db.youColl.find (). Help (); Rs.help (); 2. switch/CREATE DATABASE use yourdb; when a collection (table) is created, the current database 3 is automatically created, all databases are queried show dbs;4, and the currently used database is deleted db.dropdatabase (); 5. Clone the database from the specified host db.clonedatabase
Mongodb
PS a lot of MongoDB are not set a password, the default MongoDB is not set the password, halo
$type operatorThe query type uses theGets the title value of the Col collection as a string type documentdb.col.find(title: {$type: 2});The limit and skip method limit queries the specified method> db.min
() # successfully deleted the already existing collection true> db.mycol.drop () True > show collectionscol_1col_2runoobsystem.indexes# Delete nonexistent collection, error false Use the Find command to view the contents of the document: Db.collection_name.find ()>Dbrunoob>Db.rundb.runCommand (Db.runoob>Db.runoob.find () {"_id": ObjectId ("578dc96c5dadb19a13cd905e"),"Word":"Hello","Chinese":"It's a Nice day today!","中文版":"Today the weather is well!" }>Show Collectionscol_1col_2runoobsystem.ind
Document model relationships model one-to-one relationships with Embedded documents
OverviewData in MongoDB have a flexible schema. Collections does not ENFOCE document structure.PatternThe normalized data model, the address document contains a reference to the patron document.If The address data is frequently RETRIVEVD with name information, then with referencing, your application needs to issue Multiple queries to resolve the reference. The better
Millions of of the data in the database, processing may be slow, so it is simple to build a smaller structure of similar tables, test data
/* 0 */
{
"_id": ObjectId ("54fe73e36e26d21dc4391bdb"),
"Create_date": Isodate ("2014-07-26t13:57:18z"),
"Rfid_no": "010101000120140322000173"
}
/* 1 */
{
"_id": ObjectId ("54FE74076E26D21DC4391BDC"),
"Create_date": Isodate ("2014-07-24t11:57:18z"),
"Rfid_no": "010101000120140322000173"
}
/* 2 */
{
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.