How can I directly view blobs in MySQL Workbench

前端 未结 12 1837
一整个雨季
一整个雨季 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

    casting works, but it is a pain, so I would recommend using spioter's method unless you are using a lot of truly blob data.

    SELECT CAST(OLD_PASSWORD("test") AS CHAR)
    

    You can also cast as other types, and even restrict the size, but most of the time I just use CHAR: http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html#function_cast

提交回复
热议问题