############### 表结构 ############### class Article(models.Model): id = models.AutoField(primary_key=True) title = models.CharField(max_length=64) creat ...
分类:
其他好文 时间:
2020-02-11 10:07:28
阅读次数:
71
ASP.NET 支持三种不同的开发模式: Web Pages(Web 页面)、MVC(Model View Controller 模型-视图-控制器)、Web Forms(Web 窗体) 我给大家展示的是Web Forms(Web 窗体) 第一:我们需要了解下,什么是Web Forms。 Web F ...
分类:
Web程序 时间:
2020-02-11 00:04:07
阅读次数:
111
vlan 100 private-vlan isolated ! vlan 200 private-vlan community ! vlan 300 private-vlan primary private-vlan association 100,200 ! ! ! ! interface Gi ...
分类:
系统相关 时间:
2020-02-10 14:07:47
阅读次数:
82
P(主键) F(外键) M(强制不可为空) ...
分类:
其他好文 时间:
2020-02-09 14:26:43
阅读次数:
100
package com.itranswarp.learnjava; /** * Is primary student? */ public class PrimaryStudent { public static void main(String[] args) { int age = 7; // ...
分类:
编程语言 时间:
2020-02-08 17:30:43
阅读次数:
129
from flask import Flaskfrom flask_sqlalchemy import SQLAlchemyimport configapp = Flask(__name__)app.config.from_object(config)db=SQLAlchemy(app)class ...
分类:
数据库 时间:
2020-02-08 13:21:47
阅读次数:
78
我会谈谈对于索引结构我自己的看法,以及分享如何从零开始一层一层向上最终理解索引结构。 从一个简单的表开始 create table user( id int primary key, age int, height int, weight int, name varchar(32))engine = ...
分类:
数据库 时间:
2020-02-08 12:06:00
阅读次数:
113
题目描述: 查找所有员工自入职以来的薪水涨幅情况(to_date='9999-01-01') 给出员工编号emp_no以及其对应的薪水涨幅growth,并按照growth进行升序 CREATE TABLE `employees` ( `emp_no` int(11) NOT NULL, `birth ...
分类:
数据库 时间:
2020-02-08 11:56:32
阅读次数:
121
##约束 * 概念:对表中的数据进行限定,保证数据的正确性,有效性和完整性。 * 分类: 1、主键约束:primary key 2、非空约束:not null 3、唯一约束:unique 4、外键约束:foreign key * 非空约束:not null,值不能为null 1、创建表时,添加约束。 ...
分类:
数据库 时间:
2020-02-07 19:14:32
阅读次数:
113
对数据库的基本操作步骤 + 面试题 MyBatis 最初的设计是基于 XML 配置文件的,但随着 Java 的发展(Java 1.5 开始引入注解)和 MyBatis 自身的迭代升级,终于在 MyBatis 3 之后就开始支持基于注解的开发了。 下面我们使用 Spring Boot + MyBati ...
分类:
数据库 时间:
2020-02-07 12:51:07
阅读次数:
80