jianzh5 opened a new issue, #22152:
URL: https://github.com/apache/shardingsphere/issues/22152

   I want auto create tables by days , i using ShardingSphereDataSource like 
this
   
   ```java
    private void createTable(DataSource dataSource, String logicTable) {
           String sql = "Create table if not exists `T_EVENT_20221113` like 
`T_EVENT_20221110`";
           try(Connection connection = dataSource.getConnection(); Statement 
statement = connection.createStatement()){
               statement.execute(sql);
           }catch (SQLException e){
               throw new RuntimeException("");
           }
       }
   ```
   
   i have two datasource on application.yml,ds0 and ds1,this procedure only 
takes effect on ds0。
   
   
![image](https://user-images.githubusercontent.com/5998464/201525357-75e13781-0b7e-49da-b939-f8f8a7f96cdd.png)
   
   
   How to get the program to work in both ds0 and ds1?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to