-2
A
回答
0
@kousik曼達爾的答案是正確的。但是讓我簡單介紹一下它的工作原理。 (因爲你顯然沒有先看到在線)
SELECT course_name -- This is the column that you will recieve. if you pick * instead of course_name it will select all columns which match the criteria.
FROM table_name -- you select the course_name from the table 'table_name'
WHERE department='civil' -- This will select columns where the department column has 'civil' as a value
AND level=4 -- This will also check if the level equals to 4.
這可能沒有那麼有用,因爲答案已經給出。但我希望它會給你學習一些有用的信息SQL
+0
謝謝你的幫助。 –
0
試試這個,
select course_name from table_name where department='civil' and level=4
+1
謝謝,那是另一種方式。 –
相關問題
- 1. 如何選擇另一列
- 2. SQL:選擇一列,如果兩列相等,否則選擇既
- 3. SQL:選擇一列到另一個表中的列
- 4. SQL - 從一個選擇到另一個選擇的結果
- 5. SQL:不相交選擇到一個表
- 6. SQL代碼來選擇,選擇唯一的列與行的另一列匹配
- 7. SQL Server - 從一列中選擇值對
- 8. 針對列值相對另一列更改的SQL的列表
- 9. SQL根據另一個選擇語句從表中選擇列
- 10. 從列空選擇另一個選擇
- 11. 選擇沒有另一列
- 12. 選擇另一列加入
- 13. 選擇基於另一列
- 14. 選擇一個相對於另一個數字的數字
- 15. SQL:選擇未在另一列映射到值的ID
- 16. 一列添加到選擇SQL查詢
- 17. sql選擇多行到一列
- 18. SQL Server:選擇/更新下一列到?
- 19. SQL選擇多列到一個
- 20. 選擇列表選擇更改另一個選擇列表
- 21. 選擇一列DISTINCT SQL
- 22. 如何選擇下一列時,前一列滿足使用SQL
- 23. 不要從列中選擇與SQL中另一列的值相同的值
- 24. 在創建表中選擇另一個表的SQL一列
- 25. 如何選擇列有條件accroding到另一個在MySQL
- 26. 選擇列,其中另一列相關的總數爲0
- 27. T-SQL:[列]不像[從另一個選擇的任何值]
- 28. SQL - 如何一次選擇一行?
- 29. 如何通過使用另一個表格的另一列來選擇列
- 30. SQL:一對多,只選擇一個
'SELECT * FROM yourTable WHERE department ='civil'AND level = 4' –
你應該查看一個很好的SQL教程來學習基礎知識。這不是學習SQL的好方法。 –
好的,非常感謝。很好的工作 –