You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/27 08:40:15 UTC
[GitHub] [shardingsphere] johnny2002 commented on issue #6463: to support arbitrary SQL with HintShardingAlgorithm
johnny2002 commented on issue #6463:
URL: https://github.com/apache/shardingsphere/issues/6463#issuecomment-664205121
For an example:
HintManager hintManager = HintManager.getInstance();
hintManager.setDatabaseShardingValue("0");
**hintManager.setLogicTableName("tab_user");** //add this method to set logic table name, so that parsing sql is not neccesary
boolean rst = statement.execute("insert into ... select ... from .... group by ... having...");
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org