自动抽取表记录的sql语句

1.语句

select top " + radio + " *, NewID() as random from Qr_Questions  where Qus_Type =1 and Cou_ID =" + dt.Rows[0]["Cou_ID"] + " and Sbj_ID = " + dt.Rows[0]["Sbj_ID"] + " order by random"

2.参数  radio 抽几条   后面是条件都看的懂哈

猜你喜欢

转载自blog.csdn.net/weixin_42413952/article/details/86664459