sql查询时输出不了
改为:where totalprice is not null
改成 where totoalprice is not NULL
mysql查询不能为null的,要用 is not null 而你的这写法是有问题,你首先是要查询为null 的数据的,然后才在那基础上去取数据,当然就是没都查不到了