select * from table where key like '%value%'
模糊查询
查询key里所有包含value的数据集合;
其中value% 代表了以value开头的数据
而%value则代表了以value结尾的数据;
select count(*) from table
查询返回表里所有数据的数量
可以通过as count重命名count
select count(*) as count from table
select * from table where key like '%value%'
模糊查询
查询key里所有包含value的数据集合;
其中value% 代表了以value开头的数据
而%value则代表了以value结尾的数据;
select count(*) from table
查询返回表里所有数据的数量
可以通过as count重命名count
select count(*) as count from table