当前位置:网站首页>MySql data format is converted to Redis key-value pair format
MySql data format is converted to Redis key-value pair format
2022-08-03 06:32:00 【dd00bb】
MySql example:
| id | user_name | age |
| 1 | test1 | 10 |
| 2 | test2 | 20 |
Convert to Redis key-value pair method
The first record:
tp_user:id:1:user_name test1 (table name:primary key:primary key value:field name field value)
tp_user:id:1:age 10 (table name:primary key:primary key value:field name field value)
Second record:
tp_user:id:2:user_name test1 (table name:primary key:primary key value:field name field value)
tp_user:id:2:age 20 (table name:primary key:primary key value:field name field value)
边栏推荐
猜你喜欢

Delightful Nuxt3 Tutorial (2): Build a Blog Quickly and Easily

802.1AS的BMCA(最佳主时钟选举)理解

VS2022 encapsulation under Windows dynamic library and dynamic library calls

游戏3D建模师是吃青春饭的吗?被高薪挖掘的建模人才,靠的是这个

BOA服务器移植之嵌入式开发板(FS4412)

ue4入门学习笔记1(操作界面)

二分查找5 - 第一个错误的版本

ZEMAX | 探索 OpticStudio中的序列模式

MySql的Sql语句的练习(试试你能写出来几道呢)

802.1AS的SystemIdentity理解
随机推荐
ARP协议及简单路由器原理(1)
一文看懂常见域名后缀的含义
3d建模师为什么不建议入行
go test执行多个文件夹下相同目录的用例
2. What is the difference between Exception and Error?
classpath:与classpath*的比较
C#切换输入法
二分查找5 - 第一个错误的版本
What is parametric design, let's understand it through practical operation?| SOLIDWORKS How-To Videos
关于C语言中getchar()函数的用法
SolidWorks 操作视频 | 隐藏高手必备工具Defeature,让设计隐藏更彻底
什么是参数化设计,通过实操了解一下? | SOLIDWORKS 操作视频
守望先锋英雄角色模型分享,obj文件+材质贴图,3dmax游戏建模
PHP二维数组保留键值去重
JS--正则表达式
【面筋1】一些没什么标准答案的问题
AI智能剪辑,仅需2秒一键提取精彩片段
数组与字符串14-使用双指针移除元素
影响PoE供电传输距离的除了网线还有啥?
find命令、sort命令、uniq命令