我想使用java设置sql_mode
,而不是执行下面的sql
set @@sql_mode =‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION‘;
最佳答案
jdbc:mysql://localhost:3306/db?sessionVariables=sql_mode=ANSI_QUOTES
关于java - 如何在Spring Boot程序中动态设置mysql的sql_mode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58727070/