要查询以isuse是否为真为条件在access中可直接使用
rs.open "select * from classroom where isUse",conn,1,1
而数据库是sqlserver时非用
rs.open "select * from classroom where isUse=1 ",conn,1,1
才行
博客介绍了在不同数据库中以isuse是否为真为条件进行查询的差异。在Access中可直接使用特定查询语句,而在SQL Server中则需明确指定isUse=1 才能进行查询。
要查询以isuse是否为真为条件在access中可直接使用
rs.open "select * from classroom where isUse",conn,1,1
而数据库是sqlserver时非用
rs.open "select * from classroom where isUse=1 ",conn,1,1
才行
1348

被折叠的 条评论
为什么被折叠?