posted @ 2010-12-19 16:38 itcfj 阅读(1875) 评论(2) 推荐(2)
摘要:
SQL面试题(收藏)(一)1.写出一条Sql语句:取出表A中第31到第40记录(SQLServer, 以自动增长的ID作为主键, 注意:ID可能不是连续的。) select top 10 * from A where id not in (select top 30 id from A) 解2: select top 10 * from A where id (selectmax(id) from (select top 30 id from A )as A) 2. 写sql语句实现下列查询 (表)t a b(列) 1 2 1 3 1 4 2 1 2 2 3 1 4 1 5 3 5 2 查 阅读全文
浙公网安备 33010602011771号