SELECT * FROM date where id=1;
这是查询所有字段的记录 *代表所有 。
SELECT sname=\'张三\' FROM date where id=1;
这是只查找sname字段的记录
格式
select 字段 from 表名 where 条件;
string(21) "{"docs":[],"count":0}"
SELECT * FROM date where id=1;
这是查询所有字段的记录 *代表所有 。
SELECT sname=\'张三\' FROM date where id=1;
这是只查找sname字段的记录
格式
select 字段 from 表名 where 条件;
相关文章: