2017年11月26日

11.26 MySQL学习记录

摘要: select * from world.country; select *from world.city; select *from world.countrylanguage; /*分组与排序*/select continent, count(*) as num_countryfrom world 阅读全文

posted @ 2017-11-26 16:29 vincenthe1 阅读(89) 评论(0) 推荐(0)

2017年11月25日

11.25 MySQL学习记录

摘要: select * from world.country; /*新建一列,upper将文本全部转为大写 lower全部转为小写*/select district, upper(district) as district_upcasefrom world.cityorder by district; / 阅读全文

posted @ 2017-11-25 11:31 vincenthe1 阅读(92) 评论(0) 推荐(0)

2017年11月23日

11.23 MySQL学习记录

摘要: /*用or 一样可以到达此效果,但用in操作符更好*/select governmentform, name, gnpfrom world.countrywhere Continent in ('aisa', 'europe'); /*通配符*//* %百分号表示任何字符出现任何次数,_下划线用途相 阅读全文

posted @ 2017-11-23 20:44 vincenthe1 阅读(74) 评论(0) 推荐(0)

2017年11月21日

11.21 MySQL学习记录

摘要: 2017-11-21 17:51:04 select * from world.city; select countrycode from world.city; /*distinct关键字作用于所有列,不仅仅跟着的后面那列*/select distinct countrycode from wor 阅读全文

posted @ 2017-11-21 17:52 vincenthe1 阅读(199) 评论(0) 推荐(0)

导航