Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用 MIME base64 格式对数据编码并返回 7 位 ASCII 字符串类型的值。
BASE64_ENCODE( string-expression )
string-expression 要编码的字符串。
LONG VARCHAR
SQL/2008 服务商扩充。
以下语句从包含图像的虚构表中检索数据,并以 ASCII 格式返回数据。所产生的字符串可以嵌入到电子邮件消息中,随后由接收者进行解码以检索原始图像。
SELECT BASE64_ENCODE( image_data ) FROM IMAGES;