开始之前先来学习一个数据库查询命令select1)打印当前日期和时间mysql> select now();+---------------------+| now()               |+---------------------+| 2020-11-28 12:34:56 |+---------------------+ 1 row in setmysql>2) 打印当
原创 2021-04-09 21:37:05
184阅读
开始之前先来学习一个数据库查询命令 select 1)打印当前日期和时间mysql> select now();+---------------------+| now() |+---------------------+| 2020-11-28 12:34:56 |+---------------------+1 row in setmysql> 2) 打
原创 2022-02-13 09:51:42
179阅读
TS内容进阶,紧随上篇文章    TS 学习随笔练习1    将接口中属性修改为只读1 /** 2 * 将接口中属性修改为只读 3 */ 4 interface Person { 5 name: string, 6 age: number, 7 readonly phone: number 8 } 9 /
原创 2024-03-04 15:40:37
30阅读
一 isinstance(obj,cls)和issubclass(sub,super)isinstance(obj,cls)检查是否obj是否是类 cls 的对象 1 class Foo(object): 2 pass 3 4 obj = Foo() 5 6 isinstance(obj, Foo) issubclass(sub, super)检查sub类是否是
将centos-7的虚拟机快照至原始节点1:安装httpd程序,设置中心主机的网页根路径为/html,并写入索引页index.html,内容自己写,并引用gou.jpg图片操作如下:1.下载http程序​2.编辑主配置文件(/etc/httpd/conf/httpd.conf),更改网页根路径3.创建索引页 index.html,并写入图片        4
原创 2021-11-20 18:38:39
95阅读
1、判断用户输入的数字是否为正整数。#!/bin/bash#判断用户输入的参数是否为正整数read -p "Please input a digit:" intif [[ "$int" =~ (^[0-9]*[1-9][0-9]*$) ]];then        echo "this digit is po
原创 2017-12-24 20:52:19
5412阅读
我自己常用的一些加速源,如果你没有配置过就把下面的加上重启docker服务。这里Completed是正常的。
原创 精选 2023-10-03 09:05:32
502阅读
泛型泛型(Generics)是指在定义函数、接口或类的时候,不预先指定具体的类型,而在使用的时候再指定类型的一种特性。简单理解实现一个函数 createArray,它可以创建一个指定长度的数组,同时将每一项都填充一个默认值:function createArray(length: number, value: any): Array<any> { let result = []
转载 2024-06-25 15:57:07
21阅读
一、CONCAT_WS()\GROUP_CONCAT()有何区别?请简单举例说明如何使用? concat()函数可以将多个字符串连接成一个字符串 select concat(code,name,sex) as stu_info from student; 增加,分隔开显示 select concat ...
转载 2021-09-09 23:55:00
154阅读
2评论
--按某一字段分组取最大(小)值所在行的数据 /* 数据如下: name val memo a    2   a2(a的第二个值) a    1   a1--a的第一个值 a    3   a3:a的第三个值 b    1   b1--b的第一个值 b    3   b3:b的第三个值 b    2   b2b2b2b2 b    4   b4b4 b    5   b5b5b5b5b5 */ -
转载 2008-06-19 00:14:00
58阅读
2评论
统计函数皆不会忽略空值下面是一道牛客网练习题正确结果为DF,ABCE会统计所有学
原创 2023-02-02 10:02:33
44阅读
学生选课表的50个SQL语句1.查询001课程比002课程成绩高的所有学生的学号select a.s_idfrom (select s_id,score from sc where c_id = '001') a,(select s_id,score from sc where c_id = '002') bwhere a.s_id = b.s_idand a.score >...
原创 2022-08-07 00:57:51
284阅读
1.查看公司的平均奖金率select SUM(commisstion_pct)/count(ifnull(commisstion,0)) from employees;2.查看部门ID为10,20,30,40这四个部门中最高工资比10000高的部门信息方式一select department_id,MAX(salary) from employees where department_id in(
原创 2023-10-22 20:22:59
75阅读
11.查询公司管理者与员工的信息查询公司管理者select last_name from employees where employee_id in( select manager_id from employees -- where manager_id is not null
原创 2023-10-23 09:36:06
75阅读
time2=DateDiff("n",date1,date2)        '--Divided into the Hour or Minute or second        strmm2=""   
原创 2008-11-07 10:30:42
335阅读
•例:列出张姓且单名的学生的学号、姓名。Select sno,snameFrom StudentWhere sname LIKE‘张_ _’•转义符: escape
原创 2023-05-15 10:22:08
165阅读
1. 查询" 01 "课程比" 02 "课程成绩高的学生的信息及课程分数 1.1 查询同时存在" 01 "课程和" 02 "课程的情况 1.2 查询存在" 01 "课程但可能不存在" 02 "课程的情况(不存在时显示为 null ) 1.3 查询不存在" 01 "课程但存在" 02 "课程的情况 按
转载 2019-08-23 16:29:00
96阅读
2评论
sql 练习 -- mysql 锁表查询 -- SELECT * FROM information_schema.INNODB_TRX; -- kill trx_mysql_thread_id -- 创建部门表 DROP TABLE IF EXISTS dept; CREATE TABLE dept ...
转载 2021-09-23 16:19:00
190阅读
2评论
SQL练习: 1、count(*)、count(1) 、count('字段名') 区别 2、HQL 执行优先级: from、where、 group by 、having、order by、join、select 、limit 3、where 条件里不支持子查询,实际上是支持 in、not in、e ...
转载 2021-08-31 17:07:00
164阅读
2评论
-------------------------------------------------------------------------数据库操作sql练习一、数据库的创建: 1、创建一个名称为mydb1的数据库 2、创建一个使用utf8字符集的mydb2数据库。 3、创建一个使用utf8字符集,并带比..
原创 2022-10-31 14:55:20
64阅读
  • 1
  • 2
  • 3
  • 4
  • 5