这个问题,用普通sql语句查询,好解决,把表的字符编码改为对应的就可以了。
但在使用视图查询时,比如
select 'aaa' as type from xxx;
select * from view where type='aaa';
就会出错。经过研究,终于找到了解决方法:
select * from view where type COLLATE utf8mb4_general_ci='aaa';
即,在查询的时候,就把字段转成对应的编码,完美解决。
有同学提问,使用的SpringBoot框架,有两个微服务,为了实现追踪,使用了<artifactId spring-cloud-sleuth-zipkin</artifactId 以及zipkin。A服务是生产者,通过Rab...
Mysql给时间加1年的方法,可以批量更新,如果是单条数据请注意sql语法date类型(如2025-06-28)#增加一年update table set date_time=date_add(date_time,interval 1 ...
nginx环境下php缓存问题的解决
在Python中,如果要把md5值,转换为16进制,可以使用hashlib库的hexdigest方法。具体代码为:from hashlib import md5secret = '123456789'print(md5(...
在使用uniapp开发微信小程序,微信开发者工具调试时,明明已经给了获取位置权限,但还是提示需要打开gps获取位置,具体解决办法如下:打开uniapp的manifest.json文件,切换到源码模式,找到mp-weixin节点"p...
在使用python3.12时突然遇到提示windowsNomodulenameddistutils,研究了一下,把解决办法分享出来。1.安装setuptools,它现在也提供distutils;2.从第三方源(如系统软件包)载入distut...
1.composer版本更新文档版本号:https://getcomposer.org/download中文网:https://docs.phpcomposer.com/03-cli.html#self-update英文网:https://...
没那么多废话,直接上修改方法public\assets\js\require-table.jspageSize: Config.pagesize || localStorage.getItem("pagesize") |...