假设有这样创建的一张表 create table product ( pid int primary key auto_increment, --商品编号pname varchar (20)not null , --商品名字 price double, --商品价格 category_id varchar (20) --商品所属分类) ; 即这张表的名字是product,表的字段有商品编号,商品名字,商品价格,商品所属分类;接下来的所有查询以这张表举例子 1,简单查询 1)