[英]I am unable to display 3rd, 4th and 9th row in following table
I am unable to write a query to display 3rd, 4th and 9th row in following table because it doesn't contain any integer column...please help in finding the query for the same 我无法编写查询以显示下表中的第3、4和9行,因为它不包含任何整数列...请帮助查找相同的查询
_______________________________
| **name** | **surname** | **address** |
-------------------------------
| John | Sailo | Washington|
-------------------------------
| Peter | Mary | New York |
-------------------------------
| Sun | Zombia | Sri Lanka |
-------------------------------
| Tom | Tam | India |
-------------------------------
| Addy | Kakar | Nepal |
-------------------------------
| Pun | Zzom | Australia |
-------------------------------
| Tikki | Hob | USA |
-------------------------------
If here is no ID or other collumn which help you to sort the data you can't acomplish the task, 如果这里没有ID或其他列可以帮助您对无法完成任务的数据进行排序,
however, if you don't care, you can use LIMIT to get a goal 但是,如果您不在乎,可以使用LIMIT获得目标
SELECT * from names LIMIT 0,1;
#3rd and 4th
SELECT * from names LIMIT 2,2;
#9th
SELECT * from names LIMIT 8,1;
# all
SELECT * FROM names;
http://sqlfiddle.com/#!2/6b872/5 http://sqlfiddle.com/#!2/6b872/5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.