Database/MS-SQL2013. 12. 4. 15:46

MS-SQL 에서

랜덤 하게 5개만 뽑아 올려면

select top (5) *
from TABLE_NAME
order by newid();

 

Posted by 비니미니파