实验四
📝 目录
📝 目录
🧐 实验目的
🏁 实验内容
实验环境
实验步骤
一、服务器端安装mysql
安装mysql
开启远程连接权限
创建MySql用户
二、连接数据库
三、向远程数据库导入数据
四、实现以下查询
1.查询国民生产总值(GNP)大于世界平均水平,且最接近平均的国家’
2.查询城市人口占比不到20%的欧洲国家名称、城市人口总和、国家人口、城市人口占比
3.全世界使用人数最多的前10大语言排行榜(语言,使用人数,倒序)
4.查询超过所属大洲平均人口的国家名称、人口数量
5.所有以英语作为官方语言的国家名
6.查询不使用英语、法语和西班牙语的欧洲国家
7.查询使用了2种以上官方语言的国家名
8.查询使用了2种以上官方语言的国家名及其官方语言的数量
9.没有使用美国(code:USA)使用的任何一种语言的国家名
10.查询使用了希腊(code:GRC)所有语言的其他国家的名称和编号
⛏️ 参考
✍️ Authors
🧐 实验目的 完成给定查询
🏁 实验内容 1.查询国民生产总值(GNP)大于世界平均水平,且最接近平均的国家2.查询城市人口占比不 ...
比初恋还甜的c#语法糖
比初恋还甜的c#语法糖前言持续收集和整理一些C#或甜或咸的语法糖,一些奇怪的冷知识,逆天的用法.
????????????有一堆用法,浅浅总结一些稍微有意思的
可为空的值类型在c#2.0中引入了可为空的值类型,在值类型后加?表示可为空.
12345678910111213141516171819202122int? a = null;int[]? b = null;int?[]? c = null;bool? boolVar = null;List<int>? list = null;List<int?>? list2 = null;var wtf = new int?[]?[]//甚至可以这么写???{ new int?[] { 1, 2, 3 }, null, new int?[] { 4, 5, null }};if(a.HasValue) Console.WriteLine(a.Value);if (a < 10) //(null < 10) = ...
HelloWorld!
Hello World!This is my first post on my new blog!
I hope you like it!
More about meI am a game developer and I love creating games. I also like to learn new technologies and share my knowledge with others.
For a long while, I have been Dreaming of creating a blog to share my thoughts and ideas with others. I finally decided to create my own blog and start writing.
I hope you enjoy my blog as much as I enjoyed creating it!
Thanks for reading!