protected] ~]# mysql-u root-p123MariaDB [(None)]> use nsd1710;MariaDB [nsd1710]> Show tables;1.6 Querying the table records in the databaseSelect table field from library. Table nameSELECT * from Nsd1710.base;MariaDB [nsd1710]> SELECT * from location;MariaDB [nsd1710]> SELECT * from base;Add insertDelete DeleteChange updateCheck Select1.7 Conditional queries1. In the base table, query the name of the user whose password is 123?[Email protected] ~]# mysql-u root-p123MariaDB [(None)]> use nsd1710
protected] ~]# mysql-u root-p123MariaDB [(None)]> use nsd1802;
MariaDB [nsd1802]> SELECT * from base;MariaDB [nsd1802]> SELECT * from base where password= ' solicitous ';MariaDB [nsd1802]> select name from base where password= ' solicitous ';MariaDB [nsd1802]> SELECT * from base where name= ' Tom ';2) How many people's names are Barbara while residing in Sunnyvale? (Multi-Table union query)MariaDB [nsd1802]> Use nsd1802MariaDB [nsd1802]> SELECT
November, Leetcode All-you-hit!To commemorate it. The road to finding a job is still very long. Keep on fighting. Have seniors learn elder sister's urge, must work harder.Http://mcds.cs.cmu.edu/?q=node/262013
Chun Chen (Twitter, San Francisco, CA)
Yiwen Chen (GOOGLE, Mt. View, CA)
Mengwei Ding (GOOGLE, Mt. View, CA)
Ge Gao (GOOGLE, Mt. View, CA)
Yuan Gu (GOOGLE, Mt. View, CA)
Lingpeng Kong (CMU graduate program)
Zeyuan Li (Goldman Sachs NY, NY)
Zhiqi Li (Liveramp, San Francisco
permissions list on database name. Table name to User name @localhostIdentified by ' password ';When the Lisi user logs in from local localhost, enter password 123, the library will get the query permissions for all tables NSD# mysql-u Root-p123MariaDB [(None)]> Grant Select on nsd.* to [e-mail protected] identified by ' 123 ';View the user table information in the MARIADB databaseMariaDB [mysql]> Select User,password from Mysql.user;#####################################################Case 5:
;#####################################################Case 5: Working with database queries2. Use the database NSD on the system Server0 and use the phaseThe SQL query that is expected to answer the following questions:1) password is the name of the person who solicitous?> select * from nsd.base where password= ' solicitous ';> select * from nsd.base where password= ' solicitous ' and id= ' 3 ';> select * from nsd.base where name= ' Barbara ' or id= ' 3 ';2) How many people's names are Barbara w
|+------+---------+------------+5 rows in Set (0.00 sec)2.7.6 SELECT * from base where name= ' Tom ';Query for a user with name TomMariaDB [nsd]> SELECT * from base where name= ' Tom ';+------+------+----------+| ID | name | password |+------+------+----------+| 1 | Tom | 123 |+------+------+----------+1 row in Set (0.00 sec)2.7.7 SELECT * from nsd.base where password= ' solicitous ' and id= ' 3 ';Query password is solicitous and id=3 table records2.7.8 SELECT * from nsd.base where name= ' Barb
functionality.
Re.split () works the same way as str.split () if the given delimiter is not a regular expression that uses a special symbol to match multiple patterns
re.split(‘:‘‘str1:str2:str3‘)[‘str1‘, ‘str2‘, ‘str3‘]= ( ‘Mountain View, CA 94040‘, ‘Sunnyvale, CA‘, ‘Los Altos, 94023‘, ‘Cupertino 95014‘, ‘Palo Alto CA‘)for item in DATA: print( re.split(‘, |(?= (?:\d{5}|[A-Z]{2})) ‘, item))[‘Mountain View‘, ‘CA‘
./Testdir exists
./Tmp exists
./Results exists
Make [1]: Leaving directory '/root/UnixBench'
Sh: 3 dinfo: command not found
##########################
##################
############################
#################
##################
############################
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
Sunnyvale, CA, USA
January 13,201 1 johantheghost at yahoo period com
1 x Dhrysto
= ' Tom ';>select * from location where city= ' Beijing ';Authorized:--Interactive instruction:---The Gront permission list on the database name. Table name to user name @localhost identified by ' password ';---gront select on nsd.* to [e-mail protected] identified by ' 123 '; //Allow John Doe to query NSD all dataTo view authorization information:>select User.password from Mysql.user;Union Table query:Nsd>select * from base.location where base.name = ' Barara ' and location.city= '
for the jsonobject and jsonarray constructors. It can extract numerical information from the source string.
E. jsonexception
(4) Example of JSON format
A. object instance:
{ "Image": { "Width": 800, "Height": 600, "Title": "View from 15th Floor", "Thumbnail": { "Url": "http://www.example.com/image/481989943", "Height": 125, "Width": "100" }, "IDs": [116, 943, 234, 38793] }}
B. array instance:
[ { "precision": "zip",
load shortly. =>Alex of Sebei said:How old are you?Encarta Instant Answers:11 months, 6 days, one hour, 25 minutes and 53 seconds.Alex of Sebei said:Who is your fatherEncarta Instant Answers:I was created by Conversagent, Inc. in Sunnyvale, CA and New York, NY.Alex of Sebei said:Solve 3x ^ 2-5x = 75Encarta Instant Answers:Equation Solver:
Let's solve the quadratic equation:3x ^ 2-5x = 75First we need to put the equation in the form:Ax ^ 2 + bx + c =
jsonarray constructors. It can extract numerical information from the source string.
E. jsonexception
(4) Example of JSON format
A. ObjectInstance:
{"Image ":{"Width": 800,"Height": 600,"Title": "view from 15th floor ","Thumbnail ":{"Url": "http://www.example.com/image/481989943 ","Height": 125,"Width": "100"},"IDS": [116,943,234,387 93]}}
B. ArrayInstance:
[{"Precision": "Zip ","Latitude": 37.7668,"Longpolling":-122.3959,"Address ":"","City": "San Francisco ","State": "ca "
json object:
{ "Image": { "Width": 800, "Height": 600, "Title": "View from 15th Floor", "Thumbnail": { "Url": "http://www.example.com/image/481989943", "Height": 125, "Width": "100" }, "IDs": [116, 943, 234, 38793] } }
The image member of this object is an object, while the thumbnail Member of the image is also an object, and the IDS Member of the image is an array.
The following is a JSON array containing two objects:
[ { "precision": "zip", "Latitude": 37.7668, "Longitude": -122.3
Fujitsu's data center in the United States suffers power outages
A few days ago, the Japanese Fujitsu group's data center in Silicon Valley suffered a recent power outage, resulting in some of its cloud services being interrupted.
According to an email from the media's online world, the power outage of the data center began in August 22. Some customers reported that the impact lasted for several days.
This problem is caused by a fault in the power transmission and transformation equipment, but
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.