__exact exactly equals like ' AAA '
__iexact precision equals ignoring case ilike ' AAA '
__contains contains like '%aaa% '
__icontains contains ignoring case ilike '%aaa% ',
__GT Greater than
__gte greater than or equal to
__lt
View euca_conf -- version
Euca_conf -- list-clouds
Euca_conf -- list-CLUSTERS
Euca_conf -- list-SCS view storage controller Information
Euca_conf -- list-nodes
Euca_conf -- list-services list current status of the
Xin Xing sorts out common query commands in Linux, and Xin Xing sorts out linux commands.
View version, operating system, or cpu Information
File:/etc/issue view OS version/proc/cpuinfo view cpu Information
Command: hostname to view the computer
This article summarizes the common query language in thinkphp, which is used for reference. I believe we can bring some help to thinkphp development. Specifically as follows:
First, the general inquiry:
There are at least three forms where the
SELECT * from user_views where view_name= ' v$session ';SELECT * from all_users where username like ' s% ';SELECT * from V$database;Select Username,profile from Dba_users;;SELECT * from Dba_profiles where profile= ' DEFAULT ';SELECT * from V$archive_
Common query wording likeLike itself is relatively low efficiency, should try to avoid the use of the query conditions such as;Reason:
For a condition like '%...% ' (full blur), it is impossible to use the index, and the whole table scan is
1: List all employees ' names, department names, and wagesSelect A1.ename,a1.sal,a2.dname from emp a1,dept A2 where A1.deptno = A2.deptno;2: List details of all departments and number of departmentsSelect A2.deptno,a2.dname,a2.loc,count (a1.empno)
1. View the name and size of the table spaceSelect T.tablespace_name, round (SUM (bytes/(1024*1024)), 0) ts_sizeFrom Dba_tablespaces T, Dba_data_files Dwhere t.tablespace_name = D.tablespace_nameGroup BY T.tablespace_name;2. View the table space
View the number of connections, status1. Query processShow ProcesslistQuery to the corresponding process = = and then Kill ID2, query whether the lock tableShow OPEN TABLES where In_use > 0;3. View the transaction being lockedSELECT * from
Here is a summary of common MySQL database queries:Displays all data for a data table.Mysql> SELECT * FROM [table name];Returns the column information for the specified data table.Mysql> Show columns from [table name];Use the value "blog" Filter to
[[email protected] ~]$ sqlplus/as sysdbasql*plus:release 12.1.0.2.0 Production on Sat Mar 5 19:57:04 2016Copyright (c) 1982, Oracle. All rights reserved. Connected to:oracle Database 12c Enterprise Edition Release 12.1.0.2.0-64bit productionwith
Database1. Query the size of all data: data_length: Data size index_length: Index sizeSELECT concat (Round (sum (data_length+index_length)/1024/1024,2), ' MB ') as DATA from INFORMATION_SCHEMA. Tables\g2. View the size of the specified database,
Common query indexes of mongoDB (III)1. _ id index is the default index created by the vast majority of sets. For each inserted data, MongoDB automatically generates a unique _ id field. > Db. jerome_2.collection.insert ({x: 2}) WriteResult
Excerpt from someone, more useful, more comprehensive.//hql:hibernate Query Language.//Features://>> 1, similar to SQL, the syntax in SQL is basically straightforward to use. //>> 2,sql queries are columns in tables and tables, and HQL queries are
Tagged with: should last elastics RAS conditional query wildcard operator generated QuicQuery DSLmatch queries {"Match": { "Tweet": "About Search"}} Note: Match queries can only search for an exact value of an exact field, and when
A query for numeric data:SELECT * from Tb_name WHERE sum > 100;Query predicate:>,=,,!=,!>,!,=Two query stringsSELECT * from tb_stu WHERE sname = ' Xiao Liu 'SELECT * from Tb_stu WHERE sname like ' Liu 'SELECT * from Tb_stu WHERE sname like '%
This article mainly introduces thinkphp common queries and expression queries, and analyzes in detail the usage of common queries and expression queries in thinkphp in the form of examples, it contains the string and array modes of common queries
In the project development process, the query accounted for a large proportion, a framework of good or bad also depends on the flexibility and efficiency of the query.Provides a convenient way to query the database in Ibatis.net.There are two main
In this article I will introduce some examples of common SQL statement directories in everyday programming:
# 1. Establishment of the database
# # 2. Common queries
# 1. An example of a database is given in the form of an ER
1 1. Connect the database code:2 >Mysql-IP address of the H host-U log in database user name-p Log in Password3 4 2. Display the database5 >show databases;6 7 3. Connect to the database8 > Usedbname;9 Ten 4. Display the currently connected database
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.