DB2 Database Common Commands

Source: Internet
Author: User
Tags chr db2 db2 describe table

1.DB2 list tables-Displays all tables for the current user. &NBSP;2.DB2 List application-View connections for all databases.  3.db2move < database name > export--Export Database Data.  4.db2move MASDB8 export-tn tbl_smresult_0213/>>ac.txt--Export the table in the database &NBSP;5.DB2 select * FROM biaoming Fetch First-n Rows only-Branch query data. &NBSP;6.DB2 ' Select Table name 1.destaddr, table name 2.messageid from table name 1 LEFT OUTER JOIN table name 2 on table name 1.messageid= table name 2.messageid '--Query the same word in two days table Paragraph  7. db2mtrk-i-d-v--View the instance shared memory. The &NBSP;8.DB2 describe table name/DB2 ' select * FROM table name-describes the structure of a table.  9.update   tbl_smresult_0314 set recv_status= ' 0 '  where left (subtime,16) = ' 2013-03-14-09.21 '--modifies the data in the table.  10. " Delete from tbl_groupmemberrelation where groupcode= ' $ ' "," delete from Tbl_member where Membercode not in (select Memberc Ode from Tbl_groupmemberrelation)--delete the ungrouped numbers in the Personal Address Book. &NBSP;11.DB2 get dbm cfg--View the DB2 service name.  12.taskkill/f/im--ends the Java process. &NBSP;13.QM list  14. db2 "Select Destaddr,replace (replace (SM_CONTENT,CHR (+), ' a '), Chr (+), ' B ') From tbl_smresult_0726 where Destaddr = ' 13237294963 '--query space.  

DB2 Database Common commands

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.