查询一个表的id在另外一个表里有重复的行的最大值的问题。 select Max(id) from book_o as a where exists (select 1 from book_n b where a.title=b.title)group by id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ---有錯,改為 select Max(id) from book_o as a where exists (select 1 from book_n b where a.title=b.title)--------------------------或者select max(id) from (select id from book_o as a where exists (select * from book_n b where a.title=b.title))b 查询分析器连不上服务器了 请问如何把现有表的自增长的Fid 设置从1开始? SQL语句可否导入存贮在非服务器上的EXCEL工作表? java 第一次连接sqlserver2005数据库 速度慢 請教在sql里使用序列的方法.或者是怎麼讓一個字段自動增加 如何从一个数据库连接到另一个数据库中呢?? sql server2005安装的问题,, 怎样把存储过程加到数据库中? SQL数据库置疑问题 在线---在线----急--急--- 请教一个约束 能不能把视频文件隐藏在数据库里??
select Max(id) from book_o as a
where exists
(select 1 from book_n b where a.title=b.title)
-----------------------
---或者
select max(id) from (select id from book_o as a
where exists
(select * from book_n b where a.title=b.title))b