求一句
用一句话反回一个布尔型值,求TABLE1是是否存在某数据
[解决办法]
我想问一下select (case when exists(select 1 from sysobjects where name= 'test ') then 1 else 0 end)
中的select 1--- from 但是在数据库没有1这个字段,那位可不可以给我讲解一下,谢谢.
发布时间: 2012-03-09 16:54:57 作者: rapoo
求一句
用一句话反回一个布尔型值,求TABLE1是是否存在某数据
[解决办法]
我想问一下select (case when exists(select 1 from sysobjects where name= 'test ') then 1 else 0 end)
中的select 1--- from 但是在数据库没有1这个字段,那位可不可以给我讲解一下,谢谢.