导航

杭州网站建设专家-兆合信息

兆合信息技术 构建品质网站

« iisadmin、w3svc、msftpsvc 区别及用命令行停止、启动、重启 IISDZ论坛附件文件无法保存到服务器 »

SQL语句IN用法

id为数字类型:
select * from tables where id in (1,2,3,4,5)
select * from tables1 where id in (select top 10 id from tables2 order by xx)

username为字符类型:
select * from tables where username in ('aa','bb','cc','...')
select * from tables1 where username in (select top 10 username from tables2 order by xx)
  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新评论及回复

最近发表

Powered By HZZHIT

Copyright 2008-2009 杭州兆合信息技术有限公司. All Rights Reserved.