[英]search substring of base64 encoded string in mysql using php
i am trying to find out possible solution to search sub strings from base64 encoded string from MySQL i am storing title of the product in base64 encoding for example Ricoh SP 212W
as Umljb2ggU1AgMjEyVw==
我正在尝试寻找可能的解决方案,以从MySQL的base64编码字符串中搜索子字符串,我以base64编码(例如
Ricoh SP 212W
Umljb2ggU1AgMjEyVw==
将产品标题存储为Umljb2ggU1AgMjEyVw==
and now i want to search all products with a possible string "SP" but how i can search "SP" in Ricoh SP 212W
because this is stored as base64 encoding 现在我想搜索所有可能带有字符串“ SP”的产品,但是我如何
Ricoh SP 212W
搜索“ SP”,因为它存储为base64编码
this is what i am trying 这就是我正在尝试的
Select * from `prducts` where `product_name` LIKE %SP%
but as i already mention product_name
is stored in Base64 encoding 但正如我已经提到的,
product_name
以Base64编码存储
any suggestion please 有什么建议吗
Select * from prducts where FROM_BASE64(product_name) LIKE %SP%
为什么甚至将产品名称存储在base64中?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.