我想从Admin_Pic_Lib的整个表中选择24个随机行,但是 此Query提供语法错误,
SELECT top 24 CAST( [Pictures] AS varbinary(Max)) FROM Admin_Pic_Lib ORDER BY NEWID()
UNION ALL
SELECT CAST([Pictures] AS varbinary(Max)) FROM User_images WHERE UserName ='ahmed'
当我修剪ORDER BY NEWID()
时,它只选择前24行。
答案 0 :(得分:0)
请尝试以下代码。
div a{
margin:auto;
margin-left:1em;
margin-right:1em;
margin-top:1em;
margin-bottom:1em;
display:inline-block;
}