MySQL exports data from a specified table

Source: Internet
Author: User

MySQL: 1. do not export the statement for table creation, because the table has been created: exported by default, drop table first and then create table; 2. add ignore to the exported insert statement to allow repeated execution: ignore is not added by default; 3. the insert statement lists the fields in the table. You can see more clearly: No by default; www.2cto.com 4. multiple insert statements are generated based on different records, which are easy to modify: The default value is one. The final result is mysqldump-pxxxxxx qzt into mail_account -- no-create-info -- insert-ignore.
-- Complete-insert -- skip-extended-insert> begin into mail_account. SQL
Where:-pxxxxxx specifies the password qzt database name too many mail_account table Name> too many mail_account. SQL save to the file www.2cto.com mysqldump -- help writes-t, -- no-create-info Don't write table creation info. -- insert-ignore Insert rows with insert ignore. -c, -- complete-insert Use complete insert statements. -e, -- extended-insert Use multiple-row INSERT syntax that include several VALUES lists. (Defaults to on; use -- skip-extended-insert to disable .) author: codingstandards

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.