V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hellosmalljiang
V2EX  ›  问与答

Java 怎么执行传入的 sql?

  •  
  •   hellosmalljiang · Jul 29, 2022 · 1577 views
    This topic created in 1369 days ago, the information mentioned may be changed or developed.

    例如我去数据库查询出来一条 sql,然后想再去执行它,只能手写 jdbc 吗?大佬们给点思路。

    orcusfox
        1
    orcusfox  
       Jul 29, 2022 via iPhone   ❤️ 1
    jdbcTemplate
    RainCats
        2
    RainCats  
       Jul 29, 2022
    mybatis 或者是更好用的 mybatis plus
    AlwaysTY
        3
    AlwaysTY  
       Jul 29, 2022
    springboot2 搞起,默认是 mybatis ,你可以引入 mybatis plus
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1025 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:10 · PVG 06:10 · LAX 15:10 · JFK 18:10
    ♥ Do have faith in what you're doing.