oracle 中:
select 'x' from dual where exists( select 'X' from table1 where id = 'S' )
select count(1) from table1 where id = 'S'
select top 1 col1 from table1 where id = 'S'
哪个效率高呢?
在sybase 中有哪个表相当于 oracle 的 dual ?
------解决方案--------------------
好像都差不多! sybase没用过,应该可以用top 1吧!
------解决方案--------------------