数据插入 INSERT是用来插入或者添加行到数据库表的,插入可以分为几种方法 插入完整的行 插入行的一部分 插入多行 插入某些查询的结果 插入完整的行 此例子插入一个新客户到customers表,存储到每个表列中的数据在VALUES语句中给出,对每个列必须提供一个值 虽然这种语法很简单,但并不安全, ...
分类:
其他好文 时间:
2019-10-02 23:21:55
阅读次数:
149
1. kafka介绍 1.1. 主要功能 根据官网的介绍,ApacheKafka®是一个分布式流媒体平台,它主要有3种功能: 1:It lets you publish and subscribe to streams of records.发布和订阅消息流,这个功能类似于消息队列,这也是kafka ...
分类:
其他好文 时间:
2019-10-02 00:30:40
阅读次数:
203
1、表结构 class Student(models.Model): """ 学生表(已报名) """ customer = models.OneToOneField(verbose_name='客户信息', to='Customer',on_delete=models.CASCADE,null=T ...
分类:
其他好文 时间:
2019-09-29 09:39:26
阅读次数:
107
PAT A1083 List Grades 题目描述: Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade ...
分类:
其他好文 时间:
2019-09-28 12:26:17
阅读次数:
100
Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non increasing order, and ...
分类:
其他好文 时间:
2019-09-20 00:28:44
阅读次数:
107
缓存分为本地缓存和远端缓存。常见的远端缓存有Redis,MongoDB;本地缓存一般使用map的方式保存在本地内存中。一般我们在业务中操作缓存,都会操作缓存和数据源两部分。如:put数据时,先插入DB,再删除原来的缓存;ge数据时,先查缓存,命中则返回,没有命中时,需要查询DB,再把查询结果放入缓存 ...
分类:
系统相关 时间:
2019-09-19 01:13:23
阅读次数:
178
准备 建表与数据准备 建表 create table department( id int, name varchar(20) ); create table employee( id int primary key auto_increment, name varchar(20), sex enu ...
分类:
其他好文 时间:
2019-09-17 13:25:06
阅读次数:
78
要将主机加入Active Directory(AD),请输入: 要将主机加入NT4域,请输入: To join the host to an Active Directory (AD), enter: To join the host to an NT4 domain, enter: ...
分类:
Web程序 时间:
2019-09-02 09:17:03
阅读次数:
149
What is DNS Spoofing Sniff the DNSRR packet and show on the terminal. Analyze the following DNSRR records. Redirecting DNS Responses ...
分类:
编程语言 时间:
2019-09-01 18:53:06
阅读次数:
104
CentOS7没事删bootloader和stage1.5阶段玩众所周知bootloader位于磁盘前446字节,属于stage1.0阶段磁盘512字节后有一段空间是stage1.5阶段,用于找到启动的img和vmlinuz众所周知,stage1.0-stage2.0都可以用grub2-install(CentOS6是grub-install)参考:https://s4.51cto.com/wyfs
分类:
其他好文 时间:
2019-08-30 20:56:04
阅读次数:
78