1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.2. Try to avoid null value determination on the field in the where clause. Otherwise, the engine will discard
IT has been around for a while. At the beginning ''''''The difficulty is mainly in programming languages, arrays, logic, algorithms ,...After these steps, the difficulties will rise to the database design.And Data logic.An excellent system will
When querying users, you may also use a variety of query conditions, such as by employee ID, by name, by gender, or by education level. It is also possible to query by a combination of multiple conditions, such as checking the educational background
I. mathematical functions
1. Absolute ValueCopy codeThe Code is as follows: S: select abs (-1) valueO: select abs (-1) value from dual
2. INTEGER (large)Copy codeThe Code is as follows: S: select ceiling (-1.001) valueO: select ceil (-1.001) value
By default, MySQL installation on Linux is case sensitive to database tables. The modification is simple. You only need to modify the mysql configuration file.
Mysql> show tables;+ -------------------------------------- +| Tables_in_cddl |+ ---------
1. sum over usage
Sum (col1) over (partition by col2 order by col3)
The above function can be understood as: grouping by col2 (partition), sorting by col3 (order), and continuous addition (sum)
Table a has the following content:B C D02 02 102 03 202
Select to_char (sysdate, 'yyyy-mm-dd hh24: mi: ss'), to_char (trunc (sysdate), 'yyyy-mm-dd hh24: mi: ss ') from dual t; -- sysdate and trunc (sysdate) are different. sysdate at 00:00:00 of the current day is equal to trunc (sysdate) select trunc
1. When the MySQL installation package of the msi version is last executed, it will die in step 3 and no response will be returned directly.
This is because MySQL has been installed on the local machine before and is not uninstalled cleanly,
Recently, a project was created to access the oracle database through VC odbc. It can run normally on my computer and cannot run on other computers because the oracle odbc driver is not available and the oracle Data source cannot be configured. Most
Last_ SQL _Error: Error 'unknown table 'bb' on query. Default database: 'test'. Query: 'drop TABLE 'bb'/* generated B
The idea is to try to stop slave, reset slave, and add bb tables (define tables as needed). Remember the bin-log and position of
23. Examine the structure proposed for the TRANSACTIONS table:Name Null TypeTRANS_ID not null number (6)CUST_NAME not null VARCHAR2 (20)CUST_STATUS NOT NULL CHARTRANS_DATE NOT NULL DATETRANS_VALIDITY VARCHAR2CUST_CREDIT_LIMIT NUMBERWhich statements
When upgrading the Oracle database from 11.2.0.1.0 to 11.2.0.2.8, the software upgrade is normal, the instance upgrade is normal, and the psu is upgraded. Run @? /Rdbms/admin/catbundle psu when applying, only part of the information is displayed,
28. Which two statements are true regarding constraints? (Choose two .)A. A foreign key cannot contain NULL values.B. A column with the UNIQUE constraint can contain NULL values.C. A constraint is enforced only for the INSERT operation on a table.D.
21. Examine the description of the EMP_DETAILS table given below:Name NULL TYPEEMP_ID NOT NULL NUMBEREMP_NAME not null VARCHAR2 (40)EMP_IMAGE LONGWhich two statements are true regarding SQL statements that can be executed on the EMP_DETAIL table?
Preface supplement knowledge before classNumber (p, s)Number (p, s): Number type. p indicates the effective length of the Number (from the left 1st digits of the Number not 0Until the rightmost length. value range: 0 ~ 38 digits), and s indicates
PostgreSQL supports arrays, but does not have a function to sort internal data elements. Today I wrote one with PLPGSQL and PLPYTHONU respectively.Example Table Structure:
t_girl=# \d test_array; Table "ytt.test_array"
1: Obtain the start time and end time of the week.
Start Time of the week, starting from Monday.
SQL> SELECT TRUNC (TO_DATE ('2017-11-25 10:31:11 ', 'yyyy-MM-DD HH24: MI: ss'), 'D') + 1 ASA FROM DUAL;
A
-----------
End Time of the week,
Continue with "golden Data configuration (4)": Click to open the link
Example of the external data experiment (1) Verify the synchronization between TCUSTMER and TCUSTORD
Environment:
Item
Source System
Target System
Yesterday, the insert into a select from B statement was used in the stored procedure. When the bigint field is inserted into the int field in the application, the value is truncated. The inserted value is no longer the expected value. Because
The update operation nodes of GoldenGate are not synchronized.Fault description: synchronization cannot be implemented after update is performed on node 1 and node 2.Solution Process:1. Regular inspection: Check the Process status: normalGGSCI (gc1)
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service