How IDEA formats SQL? in MyBatis's mapper XML

how IDEA formats SQL? in MyBatis"s mapper XML


  1. needs to be connected to the database to let IDEA know your SQL

    clipboard.png

  2. IDEA SQL

    SQL A-Enter Inject language or reference

  3. CA-L
    IDEA

SQLalt+enter:

clipboard.png

Edit Fragmentalt+enterRun query in consolesql
clipboard.png

1:sqlselectsqlalt+entermysqlLanguage injection setting

clipboard.png

clipboard.png

Note 2: my idea version is 2018.1.5

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e460f3-44b72.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e460f3-44b72.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?