日期:2014-05-17  浏览次数:20322 次

如何在单表中查询整条数据
如一张单表activity 有属性 id,name,place

一般语句是select * from activity;

select a.* from activity a 
where a.id=?
在这条语句后加什么跟上面那条一样可以全部查询数据呢?
拜求大神啊。。。。。。。。。。。。 


------解决方案--------------------
SQL code
select a.* from activity a  
where a.id=a.id

------解决方案--------------------
只要是where语句为真的条件都能查询全部条件