Giter VIP home page Giter VIP logo

Comments (3)

masterchengsheng avatar masterchengsheng commented on June 7, 2024
String sql = "select ts,`value`,order_num,frequency from dqms.measure_vibrate_original where ts>= 1713518404000 and ts <= 1713518406000 and equipment_code='Y1CRF001PO' and measure_code='MBND_1_P_800L_1K' order by ts";
        HikariDataSource dataSource = new HikariDataSource();
        dataSource.setPassword("taosdata");
        dataSource.setUsername("root");
        dataSource.setJdbcUrl("jdbc:TAOS-RS://192.168.135.52:6041/dqms?user=root&password=taosdata");
        dataSource.setMaximumPoolSize(10);
        dataSource.setDriverClassName("com.taosdata.jdbc.rs.RestfulDriver");
        try (Connection connection = dataSource.getConnection()) {
            ResultSet resultSet = connection.createStatement().executeQuery(sql);
            while (resultSet.next()) {
                String string = resultSet.getString("value");
                System.out.println(StringUtils.isBlank(string) ? "----" : string);
            }
        }

返回来的数据

image

from tdengine.

yu285 avatar yu285 commented on June 7, 2024

可以加微信具体沟通一下a15652223354

from tdengine.

masterchengsheng avatar masterchengsheng commented on June 7, 2024

升级jdbc 版本->3.2.9 td版本3.2.3 之后不会出现上述问题

from tdengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.