首页 > 代码库 > Working with Data Sources 3
Working with Data Sources 3
SQL And Database:
1.SQL query is to request the data from the database.
2.We use SELECT command to pick the specific column from the database.
SELECT rank,major # This command will return a list which contains the data completely follow the order of column it selected.
FROM recent_grads;
3.Use WHERE command to select certain rows which satisfy the condition.
SELECT Major,Employed FROM recent_grads WHERE Employed > 10000
4.Use LIMIT to specify certain number of results.
5.Use Order by to specify the order for the rows.(desc and asc)
6.Order by can also specify mutiple columns by orders.
Working with Data Sources 3
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。