package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:
其他好文 时间:
2021-06-04 19:06:12
阅读次数:
0
数据库 库 database 表 table 每个库中可以包含多张表, 必须在库中建表 每个表中,一行数据,称为 记录 每一列数据,称为字段, 每个字段都有自己的类型 数据库本质是一种文件, 有一种专门的工具软件帮助管理数据库, 这种软件被称为RDBMS(关系型数据库管理系统) 关系型数据库: MY ...
分类:
数据库 时间:
2021-06-04 18:56:34
阅读次数:
0
数据库连接池的使用 连接池基本介绍 在使用数据库连接池之前,我们通过程序直接连接数据库或释放数据库资源频繁的连接或释放数据库资源,会消耗大量系统资源效率低下 系统运行时,连接池会自动与数据库建立一定数量的连接对象,并将这些连接对象放入连接池中等待使用 当程序需要使用连接对象操作数据库时,会在连接池中 ...
分类:
数据库 时间:
2021-06-04 18:54:31
阅读次数:
0
创建表:create table people( id int primary key auto_increment not null, name varchar(10) not null, age int default 18); 创建学生表: create table students(id i ...
分类:
数据库 时间:
2021-06-04 18:53:42
阅读次数:
0
1、sudo xbstream -x -C /data/data_10 < ~/test.xb 2、sudo xtrabackup --decompress --target-dir=/data/data_10 3、sudo xtrabackup --prepare --target-dir=/da ...
分类:
数据库 时间:
2021-06-04 18:45:14
阅读次数:
0
USE [dbo].[MySchool] GO IF COL_LENGTH('Student','Score') IS NULL BEGIN ALTER TABLE Student ADD Score DOUBLE END GO COL_LENGTH判断表中是否含有列,比如此处判断Student表中 ...
分类:
数据库 时间:
2021-06-03 18:27:49
阅读次数:
0
1、下载pdi-ce-9.0.0.0-423.zip并解压 2、windows下运行Spoon.bat 3、界面如下 4、转换上右键-新建-保存,另存为,然后关闭再打开就是打开的新建的文件 5、DB连接-新建 出现问题如下: Driver class 'org.gjt.mm.mysql.Driver ...
分类:
数据库 时间:
2021-06-03 18:16:41
阅读次数:
0
C#调用数据库中的Procedure的方法 public ExecutionResult CreateWIPSN(MOBaseInfo moBaseInfo) { ExecutionResult execRes; string sqlText; //private InfoLightDBTools ...
分类:
数据库 时间:
2021-06-03 18:15:04
阅读次数:
0
linux下python3.6.7安装yum -y install gcc yum -y install wget openssl openssl-develtar xvf Python-3.6.7.tgzcd Python-3.6.7/ ./configure --prefix=/usr/loca ...
分类:
编程语言 时间:
2021-06-03 18:13:34
阅读次数:
0
工具简介 Slither 是一个 python3 开发,用于检测智能合约(solidity)漏洞的静态分析框架。 Slither 的 Github 地址:https://github.com/crytic/slither 工具安装 它有三种安装方式(pip, git, docker),我们为了方便, ...
分类:
其他好文 时间:
2021-06-03 18:13:08
阅读次数:
0