Skip to content
Advertisement

Tag: mysql

Convert VARBINARY to Base64 in MySQL

This seems like a basic scenario, but I can’t find relevant info anywhere. I’m new to MySQL, coming from years of Microsoft SQL Server experience. In MySQL, how do you convert a BINARY or VARBINARY value into a Base64 string, and vice-versa? In Microsoft SQL Server, I’ve been using code like this: According to mysql.com, it looks like the TO_BASE64

Insert ordinal number

MySQL 5.7 Consider the following sample data: CREATE TABLE catalog_product_entity_media_gallery ( `value` VARCHAR(24), `entity_id` INTEGER ); INSERT INTO catalog_product_entity_media_gallery (…

Advertisement