想查询出如下格式结果
感觉没看懂意思,是这样吗select * from table where isgood in (1,0)
看不懂你的意思,感觉好像只是想加一个序号select rownum,isgood from table t