Some modifications of the Java Project database migrating from Oracle to Java in MySQL

Source: Internet
Author: User
Tags bulk insert

Java Project database migrated from Oracle to MySQL:

MySQL connection URL in the role of Useunicode=true&characterencoding=utf-8: http://blog.csdn.net/afgasdg/article/details/6941712.

Pom.xml File Dependency modified: http://mvnrepository.com/artifact/mysql/mysql-connector-java/6.0.6.

=========================================================================================================

References to primary key IDs in the original mapper file:

1) Delete the primary key ID field and the use of the sequence in Oracle;

2) in the corresponding MySQL table, set the primary key ID to self-increment, and note the type, length settings.

----------------------------

Bulk INSERT modifications in the Mapper file:

The corresponding Oracle is a cyclic generated stored procedure statement;

The corresponding MySQL is the second half of the cyclic generation of the assigned sentence.

=========================================

Some modifications of the Java Project database migrating from Oracle to Java in MySQL

Related Article

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.