mysql-API 事务 mysql事务:操作序列,这个操作要么执行,要么都不执行(工作单位) 支票表:支票账户 减少10000 储蓄表:储蓄账户 增加10000 特性:事务的4个属性 ACID 1.原子性Atomicity:一个事务是不可分割的最小的工作单位,整个事务要么全部提交成功,要么全部失败 ...
分类:
数据库 时间:
2019-12-22 18:40:02
阅读次数:
194
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-22 18:23:22
阅读次数:
74
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 18:01:24
阅读次数:
76
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 18:01:09
阅读次数:
76
精确性+可靠性=完整性 一丶数据完整性的分类 1.实体完整性 实体完整性的实现办法 主键约束 1.值不能为空 2.值必须是唯一 3.不能有业务含义 4.值不能发生变动 唯一约束 主键约束与唯一约束的区别 1.主键约束值必须唯一,并且不能为null(空值) 主键约束值必须唯一,但是允许有null(空值 ...
分类:
其他好文 时间:
2019-12-22 16:26:26
阅读次数:
98
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 16:09:10
阅读次数:
67
#include <stdio.h> #include <stdlib.h> const int N=5; typedef struct student { long no; char name[20]; int score; }STU; void input(STU s[], int n); in ...
分类:
其他好文 时间:
2019-12-22 16:08:04
阅读次数:
57
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 14:55:46
阅读次数:
92
1. #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int scor ...
分类:
其他好文 时间:
2019-12-22 12:54:21
阅读次数:
59
Part1: 结构体类型及编程应用 补足程序ex1_2.cpp,附上补足后的程序源码,输入不同测试数据,给出运行结果截图 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 ...
分类:
其他好文 时间:
2019-12-22 12:42:10
阅读次数:
68