How can I directly view blobs in MySQL Workbench

前端 未结 12 1836
一整个雨季
一整个雨季 2021-01-30 19:31

I\'m using MySQL Workbench CE 5.2.30 CE / Rev 6790 . When execute the following statement:

SELECT OLD_PASSWORD(\"test\")

I only get back a nice

12条回答
  •  情歌与酒
    2021-01-30 20:26

    Work bench 6.3
    Follow High scoring answer then use UNCOMPRESS()

    (In short:
    1. Go to Edit > Preferences
    2. Choose SQL Editor
    3. Under SQL Execution, check Treat BINARY/VARBINARY as nonbinary character string
    4. Restart MySQL Workbench (you will not be prompted or informed of this requirement).)

    Then

    SELECT SUBSTRING(UNCOMPRESS(),1,2500) FROM ;
    

    or

    SELECT CAST(UNCOMPRESS() AS CHAR) FROM ;
    

    If you just put UNCOMPRESS() you can right click blob and click "Open Value in Editor".

提交回复
热议问题