热门标签 | HotTags
当前位置:  开发笔记 > 后端 > 正文

davincisqlserver

--------------------------------Tablestructureforcron_job------------------------------DRO


-- ----------------------------
-- Table structure for cron_job
-- ----------------------------
DROP TABLE IF EXISTS cron_job;
CREATE TABLE cron_job
(
id bigint NOT NULL identity(1,1),
name nvarchar(45) NOT NULL,
project_id bigint NOT NULL,
job_type nvarchar(45) NOT NULL,
job_status nvarchar(10) NOT NULL DEFAULT '',
cron_expression nvarchar(45) NOT NULL,
start_date datetime NOT NULL,
end_date datetime NOT NULL,
config text NOT NULL,
description nvarchar(255) DEFAULT NULL,
exec_log text ,
create_by bigint NOT NULL,
create_time smalldatetime NOT NULL DEFAULT getdate(),
update_by bigint DEFAULT NULL,
update_time smalldatetime NULL DEFAULT NULL,
parent_id bigint DEFAULT NULL,
full_parent_id nvarchar(255) DEFAULT NULL,
is_folder tinyint DEFAULT NULL,
[index] int DEFAULT NULL,
PRIMARY KEY (id)
) ;
alter table cron_job add constraint name_UNIQUE unique(name);
-- ----------------------------
-- Table structure for dashboard
-- ----------------------------
DROP TABLE IF EXISTS dashboard;
CREATE TABLE dashboard
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
dashboard_portal_id bigint NOT NULL,
type smallint NOT NULL,
[index] int NOT NULL,
parent_id bigint NOT NULL DEFAULT '0',
config text,
full_parent_Id nvarchar(100) DEFAULT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_dashboard_id on dashboard(dashboard_portal_id);
create index idx_parent_id on dashboard(parent_id);
-- ----------------------------
-- Table structure for dashboard_portal
-- ----------------------------
DROP TABLE IF EXISTS dashboard_portal;
CREATE TABLE dashboard_portal
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
project_id bigint NOT NULL,
avatar nvarchar(255) DEFAULT NULL,
publish tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_project_id on dashboard_portal(project_id);
-- ----------------------------
-- Table structure for display
-- ----------------------------
DROP TABLE IF EXISTS display;
CREATE TABLE display
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
project_id bigint NOT NULL,
avatar nvarchar(255) DEFAULT NULL,
publish tinyint NOT NULL,
config text NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_project_id on display(project_id);
-- ----------------------------
-- Table structure for display_slide
-- ----------------------------
DROP TABLE IF EXISTS display_slide;
CREATE TABLE display_slide
(
id bigint NOT NULL identity(1,1),
display_id bigint NOT NULL,
[index] int NOT NULL,
config text NOT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_display_id on display_slide(display_id);
-- ----------------------------
-- Table structure for download_record
-- ----------------------------
DROP TABLE IF EXISTS download_record;
CREATE TABLE download_record
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
user_id bigint NOT NULL,
path nvarchar(255) DEFAULT NULL,
status smallint NOT NULL,
create_time datetime NOT NULL,
last_download_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_user on download_record(user_id);
-- ----------------------------
-- Table structure for favorite
-- ----------------------------
DROP TABLE IF EXISTS favorite;
CREATE TABLE favorite
(
id bigint NOT NULL identity(1,1),
user_id bigint NOT NULL,
project_id bigint NOT NULL,
create_time datetime NOT NULL DEFAULT getdate(),
PRIMARY KEY (id)
)
;
create UNIQUE index idx_user_project on favorite(user_id,project_id);
-- ----------------------------
-- Table structure for mem_dashboard_widget
-- ----------------------------
DROP TABLE IF EXISTS mem_dashboard_widget;
CREATE TABLE mem_dashboard_widget
(
id bigint NOT NULL identity(1,1),
alias nvarchar(30) NULL,
dashboard_id bigint NOT NULL,
widget_Id bigint DEFAULT NULL,
x int NOT NULL,
y int NOT NULL,
width int NOT NULL,
height int NOT NULL,
polling tinyint NOT NULL DEFAULT '0',
frequency int DEFAULT NULL,
config text,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_protal_id on mem_dashboard_widget(dashboard_id);
create index idx_widget_id on mem_dashboard_widget(widget_Id);
-- ----------------------------
-- Table structure for mem_display_slide_widget
-- ----------------------------
DROP TABLE IF EXISTS mem_display_slide_widget;
CREATE TABLE mem_display_slide_widget
(
id bigint NOT NULL identity(1,1),
display_slide_id bigint NOT NULL,
widget_id bigint DEFAULT NULL,
name nvarchar(255) NOT NULL,
params text NOT NULL,
type smallint NOT NULL,
sub_type smallint DEFAULT NULL,
[index] int NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_slide_id on mem_display_slide_widget(display_slide_id);
create index idx_widget_id on mem_display_slide_widget(widget_id);
-- ----------------------------
-- Table structure for organization
-- ----------------------------
DROP TABLE IF EXISTS organization;
CREATE TABLE organization
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
avatar nvarchar(255) DEFAULT NULL,
user_id bigint NOT NULL,
project_num int DEFAULT '0',
member_num int DEFAULT '0',
role_num int DEFAULT '0',
allow_create_project tinyint DEFAULT '1',
member_permission smallint NOT NULL DEFAULT '0',
create_time smalldatetime NOT NULL DEFAULT getdate(),
create_by bigint NOT NULL DEFAULT '0',
update_time smalldatetime NULL,
update_by bigint DEFAULT NULL,
PRIMARY KEY (id)
)
;
-- ----------------------------
-- Table structure for platform
-- ----------------------------
DROP TABLE IF EXISTS platform;
CREATE TABLE platform
(
id bigint NOT NULL,
name nvarchar(255) NOT NULL,
platform nvarchar(255) NOT NULL,
code nvarchar(32) NOT NULL,
checkCode nvarchar(255) DEFAULT NULL,
checkSystemToken nvarchar(255) DEFAULT NULL,
checkUrl nvarchar(255) DEFAULT NULL,
alternateField1 nvarchar(255) DEFAULT NULL,
alternateField2 nvarchar(255) DEFAULT NULL,
alternateField3 nvarchar(255) DEFAULT NULL,
alternateField4 nvarchar(255) DEFAULT NULL,
alternateField5 nvarchar(255) DEFAULT NULL,
PRIMARY KEY (id)
)
;
-- ----------------------------
-- Table structure for project
-- ----------------------------
DROP TABLE IF EXISTS project;
CREATE TABLE project
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
pic nvarchar(255) DEFAULT NULL,
org_id bigint NOT NULL,
user_id bigint NOT NULL,
visibility tinyint DEFAULT '1',
star_num int DEFAULT '0',
is_transfer tinyint NOT NULL DEFAULT '0',
initial_org_id bigint NOT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
-- ----------------------------
-- Table structure for rel_project_admin
-- ----------------------------
DROP TABLE IF EXISTS rel_project_admin;
CREATE TABLE rel_project_admin
(
id bigint NOT NULL identity(1,1),
project_id bigint NOT NULL,
user_id bigint NOT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create UNIQUE index idx_project_user on rel_project_admin(project_id,user_id);
-- ----------------------------
-- Table structure for rel_role_dashboard
-- ----------------------------
DROP TABLE IF EXISTS rel_role_dashboard;
CREATE TABLE rel_role_dashboard
(
role_id bigint NOT NULL,
dashboard_id bigint NOT NULL,
visible tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (role_id, dashboard_id)
)
;
-- ----------------------------
-- Table structure for rel_role_display
-- ----------------------------
DROP TABLE IF EXISTS rel_role_display;
CREATE TABLE rel_role_display
(
role_id bigint NOT NULL,
display_id bigint NOT NULL,
visible tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (role_id, display_id)
)
;
-- ----------------------------
-- Table structure for rel_role_portal
-- ----------------------------
DROP TABLE IF EXISTS rel_role_portal;
CREATE TABLE rel_role_portal
(
role_id bigint NOT NULL,
portal_id bigint NOT NULL,
visible tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (role_id, portal_id)
)
;
-- ----------------------------
-- Table structure for rel_role_project
-- ----------------------------
DROP TABLE IF EXISTS rel_role_project;
CREATE TABLE rel_role_project
(
id bigint NOT NULL identity(1,1),
project_id bigint NOT NULL,
role_id bigint NOT NULL,
source_permission smallint NOT NULL DEFAULT '1',
view_permission smallint NOT NULL DEFAULT '1',
widget_permission smallint NOT NULL DEFAULT '1',
viz_permission smallint NOT NULL DEFAULT '1',
schedule_permission smallint NOT NULL DEFAULT '1',
share_permission tinyint NOT NULL DEFAULT '0',
download_permission tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create UNIQUE index idx_role_project on rel_role_project(project_id,role_id);
-- ----------------------------
-- Table structure for rel_role_slide
-- ----------------------------
DROP TABLE IF EXISTS rel_role_slide;
CREATE TABLE rel_role_slide
(
role_id bigint NOT NULL,
slide_id bigint NOT NULL,
visible tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (role_id, slide_id)
)
;
-- ----------------------------
-- Table structure for rel_role_user
-- ----------------------------
DROP TABLE IF EXISTS rel_role_user;
CREATE TABLE rel_role_user
(
id bigint NOT NULL identity(1,1),
user_id bigint NOT NULL,
role_id bigint NOT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create UNIQUE index idx_role_user on rel_role_user(user_id,role_id);
-- ----------------------------
-- Table structure for rel_role_view
-- ----------------------------
DROP TABLE IF EXISTS rel_role_view;
CREATE TABLE rel_role_view
(
view_id bigint NOT NULL,
role_id bigint NOT NULL,
row_auth text,
column_auth text,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (view_id, role_id)
)
;
-- ----------------------------
-- Table structure for rel_user_organization
-- ----------------------------
DROP TABLE IF EXISTS rel_user_organization;
CREATE TABLE rel_user_organization
(
id bigint NOT NULL identity(1,1),
org_id bigint NOT NULL,
user_id bigint NOT NULL,
role smallint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (id)
)
;
create UNIQUE index idx_org_user on rel_user_organization(org_id,user_id);
-- ----------------------------
-- Table structure for role
-- ----------------------------
DROP TABLE IF EXISTS role;
CREATE TABLE role
(
id bigint NOT NULL identity(1,1),
org_id bigint NOT NULL,
name nvarchar(100) NOT NULL,
description nvarchar(255) DEFAULT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
avatar nvarchar(255) DEFAULT NULL,
PRIMARY KEY (id)
) ;
create index idx_orgid on role(org_id);
-- ----------------------------
-- Table structure for source
-- ----------------------------
DROP TABLE IF EXISTS source;
CREATE TABLE source
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
config text NOT NULL,
type nvarchar(10) NOT NULL,
project_id bigint NOT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
parent_id bigint DEFAULT NULL,
full_parent_id nvarchar(255) DEFAULT NULL,
is_folder tinyint DEFAULT NULL,
[index] int DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_project_id on source(project_id);
-- ----------------------------
-- Table structure for star
-- ----------------------------
DROP TABLE IF EXISTS star;
CREATE TABLE star
(
id bigint NOT NULL identity(1,1),
target nvarchar(20) NOT NULL,
target_id bigint NOT NULL,
user_id bigint NOT NULL,
star_time datetime NOT NULL default getdate(),
PRIMARY KEY (id)
)
;
create index idx_target_id on star(target_id);
create index idx_user_id on star(user_id);
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS [user];
CREATE TABLE [user]
(
id bigint NOT NULL identity(1,1),
email nvarchar(255) NOT NULL,
username nvarchar(255) NOT NULL,
password nvarchar(255) NOT NULL,
admin tinyint NOT NULL,
active tinyint DEFAULT NULL,
name nvarchar(255) DEFAULT NULL,
description nvarchar(255) DEFAULT NULL,
department nvarchar(255) DEFAULT NULL,
avatar nvarchar(255) DEFAULT NULL,
create_time smalldatetime NOT NULL DEFAULT getdate(),
create_by bigint NOT NULL DEFAULT '0',
update_time smalldatetime NULL,
update_by bigint DEFAULT NULL,
PRIMARY KEY (id)
)
;
-- ----------------------------
-- Table structure for view
-- ----------------------------
DROP TABLE IF EXISTS [view];
CREATE TABLE [view]
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
project_id bigint NOT NULL,
source_id bigint NOT NULL,
sql text,
model text,
variable text,
config text,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
parent_id bigint DEFAULT NULL,
full_parent_id nvarchar(255) DEFAULT NULL,
is_folder tinyint DEFAULT NULL,
[index] int DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_project_id on [view](project_id);
-- ----------------------------
-- Table structure for widget
-- ----------------------------
DROP TABLE IF EXISTS widget;
CREATE TABLE widget
(
id bigint NOT NULL identity(1,1),
name nvarchar(255) NOT NULL,
description nvarchar(255) DEFAULT NULL,
view_id bigint NOT NULL,
project_id bigint NOT NULL,
type bigint NOT NULL,
publish tinyint NOT NULL,
config text NOT NULL,
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
parent_id bigint DEFAULT NULL,
full_parent_id nvarchar(255) DEFAULT NULL,
is_folder tinyint DEFAULT NULL,
[index] int DEFAULT NULL,
PRIMARY KEY (id)
)
;
create index idx_project_id on widget(project_id);
create index idx_view_id on widget(view_id);
DROP TABLE IF EXISTS rel_role_display_slide_widget;
CREATE TABLE rel_role_display_slide_widget
(
role_id bigint NOT NULL,
mem_display_slide_widget_id bigint NOT NULL,
visible tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (role_id, mem_display_slide_widget_id)
)
;
DROP TABLE IF EXISTS rel_role_dashboard_widget;
CREATE TABLE rel_role_dashboard_widget
(
role_id bigint NOT NULL,
mem_dashboard_widget_id bigint NOT NULL,
visible tinyint NOT NULL DEFAULT '0',
create_by bigint DEFAULT NULL,
create_time datetime DEFAULT NULL,
update_by bigint DEFAULT NULL,
update_time datetime DEFAULT NULL,
PRIMARY KEY (role_id, mem_dashboard_widget_id)
)
;
DROP TABLE IF EXISTS davinci_statistic_visitor_operation;
CREATE TABLE davinci_statistic_visitor_operation (
id bigint NOT NULL identity(1,1),
user_id bigint DEFAULT NULL,
email nvarchar(255) DEFAULT NULL,
action nvarchar(255) DEFAULT NULL ,
org_id bigint DEFAULT NULL,
project_id bigint DEFAULT NULL,
project_name nvarchar(255) DEFAULT NULL,
viz_type nvarchar(255) DEFAULT NULL ,
viz_id bigint DEFAULT NULL,
viz_name nvarchar(255) DEFAULT NULL,
sub_viz_id bigint DEFAULT NULL,
sub_viz_name nvarchar(255) DEFAULT NULL,
widget_id bigint DEFAULT NULL,
widget_name nvarchar(255) DEFAULT NULL,
variables nvarchar(500) DEFAULT NULL,
filters nvarchar(500) DEFAULT NULL,
groups nvarchar(500) DEFAULT NULL,
create_time smalldatetime NULL DEFAULT NULL,
PRIMARY KEY (id)
) ;
DROP TABLE IF EXISTS davinci_statistic_terminal;
CREATE TABLE davinci_statistic_terminal (
id bigint NOT NULL identity(1,1),
user_id bigint DEFAULT NULL,
email nvarchar(255) DEFAULT NULL,
browser_name nvarchar(255) DEFAULT NULL,
browser_version nvarchar(255) DEFAULT NULL,
engine_name nvarchar(255) DEFAULT NULL,
engine_version nvarchar(255) DEFAULT NULL,
os_name nvarchar(255) DEFAULT NULL,
os_version nvarchar(255) DEFAULT NULL,
device_model nvarchar(255) DEFAULT NULL,
device_type nvarchar(255) DEFAULT NULL,
device_vendor nvarchar(255) DEFAULT NULL,
cpu_architecture nvarchar(255) DEFAULT NULL,
create_time smalldatetime NULL DEFAULT NULL,
PRIMARY KEY (id)
) ;
DROP TABLE IF EXISTS davinci_statistic_duration;
CREATE TABLE davinci_statistic_duration
(
id bigint NOT NULL identity(1,1),
user_id bigint DEFAULT NULL,
email nvarchar(255) DEFAULT NULL,
org_id bigint DEFAULT NULL ,
project_id bigint DEFAULT NULL ,
project_name nvarchar(255) DEFAULT NULL ,
viz_type nvarchar(10) DEFAULT NULL ,
viz_id bigint DEFAULT NULL ,
viz_name nvarchar(255) DEFAULT NULL ,
sub_viz_id bigint DEFAULT NULL ,
sub_viz_name nvarchar(255) DEFAULT NULL ,
start_time smalldatetime NULL DEFAULT NULL,
end_time smalldatetime NULL DEFAULT NULL,
PRIMARY KEY (id)
) ;
DROP TABLE IF EXISTS share_download_record;
CREATE TABLE share_download_record (
id bigint NOT NULL identity(1,1),
uuid nvarchar(50) DEFAULT NULL,
name nvarchar(255) NOT NULL,
path nvarchar(255) DEFAULT NULL,
status smallint NOT NULL,
create_time datetime NOT NULL,
last_download_time datetime DEFAULT NULL,
PRIMARY KEY (id)
) ;
INSERT INTO [user] ( email, username, password, admin, active, name, description, department, avatar, create_time, create_by, update_by, update_time)
VALUES ( 'guest@davinci.cn', 'guest', '$2a$10$RJKb4jhMgRYnGPlVRV036erxQ3oGZ8NnxZrlrrBJJha9376cAuTRO', 1, 1, NULL, NULL, NULL, NULL, '2020-01-01 00:00:00', 0, NULL, NULL);
INSERT INTO organization ( name, description, avatar, user_id, project_num, member_num, role_num, allow_create_project, member_permission, create_time, create_by, update_time, update_by)
VALUES ( 'guest Organization', NULL, NULL, 1, 0, 1, 0, 1, 1, '2020-01-01 00:00:00', 1, NULL, NULL);
INSERT INTO rel_user_organization ( org_id, user_id, role, create_by, create_time, update_by, update_time)
VALUES ( 1, 1, 1, 1, '2020-01-01 00:00:00', NULL, NULL);
INSERT INTO [user] ( email, username, password, admin, active, name, description, department, avatar, create_time, create_by, update_by, update_time)
VALUES ( 'admin@davinci.cn', 'admin', '$2a$10$RJKb4jhMgRYnGPlVRV036erxQ3oGZ8NnxZrlrrBJJha9376cAuTRO', 1, 1, NULL, NULL, NULL, NULL, '2020-01-01 00:00:00', 0, NULL, NULL);
INSERT INTO organization ( name, description, avatar, user_id, project_num, member_num, role_num, allow_create_project, member_permission, create_time, create_by, update_time, update_by)
VALUES ( 'admin Organization', NULL, NULL, 2, 0, 1, 0, 1, 1, '2020-01-01 00:00:00', 1, NULL, NULL);
INSERT INTO rel_user_organization ( org_id, user_id, role, create_by, create_time, update_by, update_time)
VALUES ( 1, 2, 1, 1, '2020-01-01 00:00:00', NULL, NULL);

作者:马洪彪  Q我

出处:http://www.cnblogs.com/mahongbiao/

本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。



推荐阅读
  • 基于PgpoolII的PostgreSQL集群安装与配置教程
    本文介绍了基于PgpoolII的PostgreSQL集群的安装与配置教程。Pgpool-II是一个位于PostgreSQL服务器和PostgreSQL数据库客户端之间的中间件,提供了连接池、复制、负载均衡、缓存、看门狗、限制链接等功能,可以用于搭建高可用的PostgreSQL集群。文章详细介绍了通过yum安装Pgpool-II的步骤,并提供了相关的官方参考地址。 ... [详细]
  • 本文介绍了如何使用php限制数据库插入的条数并显示每次插入数据库之间的数据数目,以及避免重复提交的方法。同时还介绍了如何限制某一个数据库用户的并发连接数,以及设置数据库的连接数和连接超时时间的方法。最后提供了一些关于浏览器在线用户数和数据库连接数量比例的参考值。 ... [详细]
  • 本文介绍了解决二叉树层序创建问题的方法。通过使用队列结构体和二叉树结构体,实现了入队和出队操作,并提供了判断队列是否为空的函数。详细介绍了解决该问题的步骤和流程。 ... [详细]
  • 本文介绍了一个在线急等问题解决方法,即如何统计数据库中某个字段下的所有数据,并将结果显示在文本框里。作者提到了自己是一个菜鸟,希望能够得到帮助。作者使用的是ACCESS数据库,并且给出了一个例子,希望得到的结果是560。作者还提到自己已经尝试了使用"select sum(字段2) from 表名"的语句,得到的结果是650,但不知道如何得到560。希望能够得到解决方案。 ... [详细]
  • ALTERTABLE通过更改、添加、除去列和约束,或者通过启用或禁用约束和触发器来更改表的定义。语法ALTERTABLEtable{[ALTERCOLUMNcolu ... [详细]
  • 本文讨论了clone的fork与pthread_create创建线程的不同之处。进程是一个指令执行流及其执行环境,其执行环境是一个系统资源的集合。在调用系统调用fork创建一个进程时,子进程只是完全复制父进程的资源,这样得到的子进程独立于父进程,具有良好的并发性。但是二者之间的通讯需要通过专门的通讯机制,另外通过fork创建子进程系统开销很大。因此,在某些情况下,使用clone或pthread_create创建线程可能更加高效。 ... [详细]
  • mysql-cluster集群sql节点高可用keepalived的故障处理过程
    本文描述了mysql-cluster集群sql节点高可用keepalived的故障处理过程,包括故障发生时间、故障描述、故障分析等内容。根据keepalived的日志分析,发现bogus VRRP packet received on eth0 !!!等错误信息,进而导致vip地址失效,使得mysql-cluster的api无法访问。针对这个问题,本文提供了相应的解决方案。 ... [详细]
  • 本文介绍了Windows操作系统的版本及其特点,包括Windows 7系统的6个版本:Starter、Home Basic、Home Premium、Professional、Enterprise、Ultimate。Windows操作系统是微软公司研发的一套操作系统,具有人机操作性优异、支持的应用软件较多、对硬件支持良好等优点。Windows 7 Starter是功能最少的版本,缺乏Aero特效功能,没有64位支持,最初设计不能同时运行三个以上应用程序。 ... [详细]
  • 李逍遥寻找仙药的迷阵之旅
    本文讲述了少年李逍遥为了救治婶婶的病情,前往仙灵岛寻找仙药的故事。他需要穿越一个由M×N个方格组成的迷阵,有些方格内有怪物,有些方格是安全的。李逍遥需要避开有怪物的方格,并经过最少的方格,找到仙药。在寻找的过程中,他还会遇到神秘人物。本文提供了一个迷阵样例及李逍遥找到仙药的路线。 ... [详细]
  • 先看官方文档TheJavaTutorialshavebeenwrittenforJDK8.Examplesandpracticesdescribedinthispagedontta ... [详细]
  • JDK源码学习之HashTable(附带面试题)的学习笔记
    本文介绍了JDK源码学习之HashTable(附带面试题)的学习笔记,包括HashTable的定义、数据类型、与HashMap的关系和区别。文章提供了干货,并附带了其他相关主题的学习笔记。 ... [详细]
  • 本文介绍了使用哈夫曼树实现文件压缩和解压的方法。首先对数据结构课程设计中的代码进行了分析,包括使用时间调用、常量定义和统计文件中各个字符时相关的结构体。然后讨论了哈夫曼树的实现原理和算法。最后介绍了文件压缩和解压的具体步骤,包括字符统计、构建哈夫曼树、生成编码表、编码和解码过程。通过实例演示了文件压缩和解压的效果。本文的内容对于理解哈夫曼树的实现原理和应用具有一定的参考价值。 ... [详细]
  • 本文介绍了一种轻巧方便的工具——集算器,通过使用集算器可以将文本日志变成结构化数据,然后可以使用SQL式查询。集算器利用集算语言的优点,将日志内容结构化为数据表结构,SPL支持直接对结构化的文件进行SQL查询,不再需要安装配置第三方数据库软件。本文还详细介绍了具体的实施过程。 ... [详细]
  • 本文介绍了Codeforces Round #321 (Div. 2)比赛中的问题Kefa and Dishes,通过状压和spfa算法解决了这个问题。给定一个有向图,求在不超过m步的情况下,能获得的最大权值和。点不能重复走。文章详细介绍了问题的题意、解题思路和代码实现。 ... [详细]
  • Iamtryingtocreateanarrayofstructinstanceslikethis:我试图创建一个这样的struct实例数组:letinstallers: ... [详细]
author-avatar
星寴
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有