前置命令

发布日期:2024-12-03
最后更新:2026-02-18 12:38:50
阅读:5,320
有些查询需要一些前置命令,如先创建临时表
ConfigStore可以设置前置命令
        ConfigStore configs = new DefaultConfigStore();
        RunPrepare prepare = new DefaultTextPrepare("CREATE TEMPORARY TABLE TMP_TAB AS SELECT * FROM crm_user");
        configs.prepare(prepare);
        service.selects("TMP_TAB", configs );