SQL语句:select * from notice where ntype=?和select * from notice 这两句之间有什么区别?

如题所述

select * from notice where ntype=? 查询时可以对ntype属性指定参数,?是参数的占位符。该语句含义为查询出notice表中ntype属性为指定参数的数据。
select * from notice 则是单纯的查询出notice表中的所有数据。
温馨提示:答案为网友推荐,仅供参考
相似回答