首页 > 其他 > 详细

Working with Data Sources 3

时间:2016-11-18 07:27:28      阅读:193      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/kingoscar/p/6076169.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!