上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
IS NULL: 当列的值是 NULL,此运算符返回 true。 IS NOT NULL: 当列的值不为 NULL, 运算符返回 true <=>: 比较操作符(不同于 = 运算符),当比较的的两个值相等或者都为 NULL 时返回 true。 关于 NULL 的条件比较运算是比较特殊的。你不能使用 Read More
posted @ 2020-09-14 18:00 gygtech Views(191) Comments(0) Diggs(0) Edit
-- distinct select distinct user_email from `user`; -- order by 字段1 desc/asc[, 字段2 desc/asc] -- 默认是asc select * from `user` order by user_gender desc, Read More
posted @ 2020-09-14 17:49 gygtech Views(189) Comments(0) Diggs(0) Edit
-- mysql if表达式 -- if(expr1, expr2, expr3):expr1为true,返回expr2,反之expr3 select user_email, if(user_email='gsdhj@qq.com', 'qq', '360') as result from `use Read More
posted @ 2020-09-14 14:37 gygtech Views(4537) Comments(0) Diggs(0) Edit
-- 显示版本 select version(); -- 以下注释只针对版本 5.7.31-log -- mysql文档中,mysql变量被分为两大类,即 #系统变量 #用户变量 -- 实际应用中细分为四大类,即 #局部变量 #用户变量 #会话变量 #全局变量 -- 局部变量 -- mysql局部变 Read More
posted @ 2020-09-14 11:29 gygtech Views(313) Comments(0) Diggs(0) Edit
项目结构【可以根据实际情况,自己添加或者修改】【特别注意:Swagger中Dto类不能重名】 0-Infrastructure xxx.Common【公共方法】 xxx.Model xxx.Repository 1-Application xxx.Service xxx.Query【查询方法】 xx Read More
posted @ 2020-09-10 09:53 gygtech Views(628) Comments(0) Diggs(0) Edit
MySQL中定义数据字段的类型对你数据库的优化是非常重要的。 MySQL支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型。 数值类型 MySQL支持所有标准SQL数值数据类型。 这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMERIC),以及 Read More
posted @ 2020-09-09 22:27 gygtech Views(97) Comments(0) Diggs(0) Edit
-- 列出 MySQL 数据库管理系统的数据库列表。 show databases; -- 选择要操作的Mysql数据库,使用该命令后所有Mysql命令都只针对该数据库。 use mysql; -- 获取建表语句 show create table employee; -- 显示指定数据库的所有表, Read More
posted @ 2020-09-08 23:48 gygtech Views(170) Comments(0) Diggs(0) Edit
符号字符含义 \n 换行 (0x0a) \r 回车 (0x0d) \f 换页符(0x0c) \b 退格 (0x08) \0 空字符 (0x0) \s 空格 (0x20) \t 制表符 \" 双引号 \' 单引号 \\ 反斜杠 \ddd 八进制字符 (ddd) \uxxxx 16进制Unicode字符 Read More
posted @ 2020-09-05 15:53 gygtech Views(391) Comments(0) Diggs(0) Edit
浅析理论: Java枚举(enum)详解:Java声明枚举类型、枚举(enum)类、EnumMap 与 EnumSet 声明枚举 声明枚举时必须使用 enum 关键字,然后定义枚举的名称、可访问性、基础类型和成员等。 任意两个枚举成员不能具有相同的名称,且它的常数值必须在该枚举的基础类型的范围之内, Read More
posted @ 2020-09-05 15:12 gygtech Views(242) Comments(0) Diggs(0) Edit
1、ORM 对象关系映射(Object Relational Mapping,简称ORM)是通过使用描述对象和数据库之间映射的元数据,将面向对象语言程序中的对象自动持久化到关系数据库中。本质上就是将数据从一种形式转换到另外一种形式。 这也同时暗示着额外的执行开销;然而,如果ORM作为一种中间件实现, Read More
posted @ 2020-09-04 14:13 gygtech Views(309) Comments(0) Diggs(0) Edit
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页