When you want to view specific rows, you need to use the WHERE clause along with a condition.
正确答案是:B: `select id from t1 where id=10;`
专业分析如下:
1. **选项A: `select id from t1 id=10;`**
- 这个查询语句是错误的。它缺少关键字`where`来指定条件。
2. **选项B: `select id from t1 where id=10;`**
- 这个查询语句是正确的。它使用了`where`关键字来指定条件,表示从表`t1`中选择`id`等于10的行。
3. **选项C: `select id from t1 id 10;`**
- 这个查询语句是错误的。它缺少`where`关键字,并且语法不正确。
4. **选项D: `select id from t1 where id 10;`**
- 这个查询语句是错误的。它缺少等号`=`来指定条件。
综上所述,选项B是正确的查询语句。