BCP bulk Export Import datasheet entry

Source: Internet
Author: User

Export:
BCP data table queryout Export address-c-u user name-p user password-s database address

Cases:
bcp persons queryout C:\Users\Administrator\De sktop\bcp\persons.bcp-c-uroot-proot-s127.0.0.1

You can also join a database statement to select several of these data exports, for example:

BCP "SELECT * from persons where name = ' Simple '" queryout c:\Users\Administrator\Desktop\bcp\persons.bcp-c-uroot-proot -s127.0.0.1

Import:
BCP data table in import address-c-u user name-p user password-s database address

Cases:
bcp persons in C:\Users\Administrator\De sktop\bcp\persons.bcp-c-uroot-proot-s127.0.0.1

Note: This is a command-line statement, so to open the command line Input statement execution, press the shortcut key win+r input cmd run and then enter the above statement to run it

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.