select (pid)from prudect 这样查是对的
select (pid,pname,price)from prudect 这样查怎么是错的呀?怎么查指定字段的数据
------解决方案--------------------------------------------------------
你加括号干嘛?直接使用select pdi,pname,price from prudect;在插入数据的时候才使用括号
------解决方案--------------------------------------------------------
- SQL code
select pid,pname,price from prudect--或者,如果你真要加括号的话,实在没有必要select (pid),(pname),(price) from prudect