This article provides you with detailed analysis of several basic strategies for optimizing the DB2 database, including creating indexes for the tables used in the future and inserting the inserted tables in a non-log manner, hope to help you.
1. Create an index for the tables used in the future. Note that the index is created before data insertion or after data insertion, but runstats is required)
Note: if
This article describes several basic strategies for optimizing the DB2 database.
1. Create an index for the tables used in the future (note that the index is created before data insertion or after data insertion but runstats is required ):
Note: if data is created before insertion, indexes will also be updated during table insertion. In this case, a large log space is required, so the speed will be slow, yo
Learn about basic Linux commands: df commands and du commands-general Linux technology-Linux technology and application information. For more information, see the following. Df command
This interface is used to view the status information of the Linux File System and display the capacity, used, unused, and mount point
1. Add a fieldALTER TABLE [table_name] add [column_name] [Column_type]2. Change the field typeALTER TABLE [TABLE_NAME] ALTER COLUMN [COLUMN_NAME] Set data type [Column_type]Note: Changes to the field type are limited, such as changing the field to be larger than the previous type, if you want to change the size or change the decimal length, you must first drop the original column and then add it again.For example, I want to change the column of a varchar (10) to varchar (6) or change the column
Distributed memcached Learning (2) -- Basic memcached commands and basic memcached commands
The above section describes how to compile and log on to memcahed in linux. The following describes how to use the basic memcahed command
Basic MySQL commands and basic mysql commands
SQL
Statement
Mysql version: For mysql-5.6.36 version1.1 Common commands
# View database mysql> show databases; show databases like '% pres %'; # fuzzy query # View table mysql> use xzymysql> show tables; # view permissions show
; --nullSELECT * from Studentinfo where stuage is null;SELECT * from Studentinfo where stuage are NOT null; --between and includes boundaries equivalent to >= and Select S.stuname as name, s.stuage+5 as age from Studentinfo s where s.stuage between and 20 --inSELECT * from Studentinfo where stuname in (' XY ', ' WJ ');SELECT * from Studentinfo where stuname not in (' xy ', ' WJ '); --Fuzzy query like%,% represents multiple charactersSELECT * from Studentinfo where stuname like ' X-percent ' --
Basic linux commands and basic linux commands
Shutdown-h now shut down immediately
Shutdown-r now restart the computer
Reboot now restarts the computer
Logout user logout
Vi editor usage:
1) vi file name
2) Enter I to enter the command mode]
3) Enter esc to Enter command mode]
4) input: [wq indicates exit and keep q! E
Table Space Basic Commands--Create TABLE space initialization size 10M auto grow 5M max 50MCreate tablespace Duan datafile ' F:\oracle\product\10.2.0\oradata\orcl\duan.dbf ' size 10MAutoextend on next 5M maxsize 50M;--Querying table space for address and space namesSelect File_name,tablespace_name from Dba_data_files order by file_name;--Create a multiple tablespace containing two data filesCreate tablespac
JSP basic syntax, 3 Compilation commands, 7 Action commands, 9 built-in objectsI. jsp Overview
JSPIs the abbreviation of java server page, which is essentially a simplified servlet and a dynamic web page technical standard. Jsp pages are embedded in java segments in HTML pages. applications developed using jsp can be used across platforms.Ii. jsp
=" Image025.png "alt=" Wkiom1l5qzqb2ck-aae02uch_4u103.png "/>(3)hash-d nameDeleteHashNow we will delete the cached pwd in the hash , and the name we need to enter when we delete It is the alias we found with hash-l . 650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9D/14/wKioL1l5qzuBYp6QAAC5QHVv0zU321.png "style=" float : none; "title=" Image026.png "alt=" Wkiol1l5qzubyp6qaac5qhvv0zu321.png "/>you can see that the PWD is not in the list . then we look at the type of PWD and find that
Basic Search commands and information in Linux, and query commands in linux
Searching for commands and hardware information is the most common operation for daily system management and maintenance. Next we will make a brief comparison of the Basic Search
Common MySql commands and basic mysql commands
Common MySQL database commands
1. MySQL Common commands
Create database name; create a database
Use databasename; select database
Drop database name directly deletes the database, no reminder
Show tables; displays tables
Descri
Basic but practical: Summary of common LNMP commands and common lnmp commands
1. modify directory permissions[Root @ localhost ~] # Chmod 777/home/user Note: only set the permission of the/home/user directory to rwxrwxrwx.[Root @ localhost ~] # Chmod-R 777/home/user Note: Set the permissions of the entire/home/user directory and its files and subdirectories to rw
redirectionStandard input: Code 0, using Standard output: Code 1, using > or >>Standard error Output: Code 2, using 2> or 2>>1>: Output the correct data to the specified file or device in an overriding way1>>: Output the correct data to the specified file or device in an additive way2>: outputting the wrong data to the specified file or device in an overridden manner2>>: The incorrect data is output to the specified file or device in an additive way4. The judgment basis of the command execution
1. Format description"[email protected] Simon" $"[Email protected] ~" $Both of these methods represent the same. Simon is the specified user, localhost is the computer name, if not set to localhost by default. Simon, ~ refers to the directory where you are currently located.Terminal: Command interpreter, simulation shell2, the user's switchsu[options] [user]such as: Su-rootThe example uses the SU command to change a normal user to the root user and use the option "-" to carry the root environmen
Basic Linux commands and Linux commands
Compression and decompression commands
Compression: tar-zcvf appName.tar.gz. date appFileName (for example, tar-zcvf rc.tar.gz. 0513 rc)
Decompress: tar-xvf tarFile
Tar command details:
Tar package compression;-c archive file,-x compressed file,-z gzip co
Mysql build and basic commands, mysql build commands
I. mysql setup process
Install mysql on ubuntu
1. sudo apt-get install mysql-server
2. sudo apt-get install mysql-client
3. sudo apt-get install libmysqlclient-dev
2. Basic commands-Logon, logout, addition of databases,
I. Linux basic management commands and Linux management commands
1. Shutdown and restart command
(1) shutdown command: shutdown [Option] Time
Option:-c. Cancel the previous shutdown command.
-H Shutdown
-R restart
Example: shutdown-h now # shut down immediately, root User
+ 10 # shutdown in 10 minutes
# Define the absolute restart time
(2) Other shutdown
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.