随笔分类 -  数据库 / mySql

摘要:1. 事务概念 事务( Transaction)由一次或者多次基本操作构成,或者说,事务由一条或者多条 SQL 语句构成。 事务相关命令: 1)begin transaction;/start transaction; 显式的开启一个事务 2)commit/commit work; 提交事务 3)r 阅读全文
posted @ 2024-04-16 16:59 primaryC 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1, 一些特殊表 查询表的存在 select * from information_schema.tables where table_schema = 'databaseName' table_name like '%tableName%' 查询字段的存在 select * from inform 阅读全文
posted @ 2023-07-06 17:47 primaryC 阅读(38) 评论(0) 推荐(0) 编辑
摘要:1 mysql 数据类型 1. 整数类型 tinyint: 1个字节(2^8) smallint: 2个字节 mediumint:3个字节 int:4个字节 bigint:8个字节 2. 浮点数类型 float:(4个字节)1个符号位,8个指数位,23个尾数位,-3.4E+38 ~ 3.4E+38 阅读全文
posted @ 2023-03-07 22:09 primaryC 阅读(73) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.