set rs=server.createobject("adodb.recordset")
sqlk="select * from product where id in (1,3,5,7,9)"
rs.open sqlk,conn,1,1请问怎样能从数据库读数据按in数组中的次序读啊?高手帮忙啊!
sqlk="select * from product where id in (1,3,5,7,9)"
rs.open sqlk,conn,1,1请问怎样能从数据库读数据按in数组中的次序读啊?高手帮忙啊!
解决方案 »
- Ilist绑定数据分页,显示详细内容?
- 【求助】关于EntityFramework和ASP.NET MVC的几个问题!
- 怎样在DropDownList加上OnClientClik属性?
- 让gridview绑定后无刷新,当然不是UpdatePanel这么简单的(这个问题解决了估计就很可以无敌一阵子了。。)
- 程序正在运行。这时候修改 Web.config 后,所有Cache 全局变量会自动消失吗??
- 精神崩溃!找不到文件或程序集Ajax,或找不到它的一个依赖项!这是怎么回事?
- 为什么我用access数据库要用OleDb,用mssql用SqlClient?
- 怎么改写页面中的指定位置?
- 三层架构。。。
- .net新手问:我要在类里面用Response命令
- Frame中页面跳转总是弹出新页面
- ajax 正则表达式
union
select * from product where id =3
union
select * from product where id =5
union
select * from product where id =7
union
select * from product where id =9
union
set rs=server.createobject("adodb.recordset")
sqlk="select * from product where id in ("&rk&")"
rs.open sqlk,conn,1,1
上面是我的原码,rk是一个数组,无序的,个数也不确定,是从数据库中读的一个字段。