Dim sql2 As String = "select top 5 * from(( shouyeliuyan inner join usertable on shouyeliuyan.shouyeliuyan_liuyanren=usertable.username) inner join hfsyly on shouyeliuyan.shouyeliuyan_ID=hfsyly.liuyanID) where ( not in (select top " & (AspNetPager1.CurrentPageIndex - 1) * 5 & " shouyeliuyan_ID from shouyeliuyan order by shouyeliuyan_ID desc)) and ( shouyeliuyan_shouyeID=" & ID & " ) order by shouyeliuyan_ID desc"
呵呵 有点长
access数据库
不过就一个地方不行
在WHERE NOT IN ( SELECT 语句)and shouyeliuyan_shouyeID=XX
这里怎么连接
求大家告诉我一下语法
1L我加了 但是还是不行
内联了的SQL语句怎么用NOT IN
Dim sql2 As String = "select top 5 * from shouyeliuyan inner join usertable on shouyeliuyan.shouyeliuyan_liuyanren=usertable.username inner join hfsyly on shouyeliuyan.shouyeliuyan