Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表 student 字段 sno , name 等。给定一个 sno 我想列出该数字之后的所有记录,直到最后。即我想获取10(示例)之间的所有记录直到结束。请帮忙
SELECT * FROM Student WHERE sno >= 10
如果你想传递一个变量,只需用一个变量替换
SELECT * FROM Student WHERE sno >= @sno
我假设@sno在您的代码中的某处定义
@sno
就像下面一样简单。
SELECT * FROM student WHERE sno > 10 ^^ here you will have your serial number...
但我不明白你为什么要玩序列号。你到底想做什么?