摘要:
原文:https://www.imooc.com/article/305617 SQL中包含以下七种类型的函数: 聚合函数:返回汇总值。 转型函数:将一种数据类型转换为另外一种。 日期函数:处理日期和时间。 数学函数:执行算术运算。 字符串函数:对字符串、二进制数据或表达式执行操作。 系统函数:从数 阅读全文
摘要:
原文:https://blog.51cto.com/u_2853725/1377345 有时,我们在mysql中运行一些命令,我们按键盘向上方向键会一一列出来。如何查看命令历史呢,就像在linux下的shell中查看shell命令历史。mysql 有这样一个机制,就是,在用户的主目录下会生成一个.m 阅读全文
摘要:
原文:https://www.modb.pro/db/12232 前言 之前在项目的存储过程中发现有通过 DECLARE 关键字定义的变量如DECLARE cnt INT DEFAULT 0;,还有形如 @count 这样的变量,存储过程中拿过来直接就进行设置,像这样set @count=1;,这两 阅读全文
摘要:
原文:https://www.cnblogs.com/zzjdbk/p/12992305.html. 【1】@@datadir 函数作用:返回数据库的存储目录构造SQL语句 select @@datadir;ps:@@basedir返回mysql的根目录【2】@@version_compile_os 阅读全文
摘要:
原文:https://zhuanlan.zhihu.com/p/71134861 ps = session.query(Person).first() print(ps) # 3、修改制定行数据 person = session.query(Person).first() print(perso 阅读全文
摘要:
原文:https://www.cnblogs.com/DBArtist/p/15320295.html 一:设置服务器默认字符集为 utf8mb4 创建数据库时,如果没有指定字符集,会采用服务器的默认字符集。设置服务器默认字符集为 utf8mb4 可以提高便利性。 编辑 MySQL 的配置文件,修改 阅读全文