Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Microsoft SQL Server ManagementStudioR2で次の操作を提供するソリューションを探しています。
次のコードを使用します
declare @n int set @n = (select ISNULL(count(*),0) from table_name) if(@n=0) print 'not result' else select * from table_name
また
if(select count(*) from table_name)=0 print 'not result' else select * from table_name