MySQL葡萄树

本文档提供了创建名为wuhanleaf04的数据库及三张主表(undergraduate、postgraduate、ljdy)的SQL脚本。同时,还演示了如何创建用于记录特定日期的表ljdy20180611,并插入一条记录。

今天是2018年6月11日,上午10点28分,现在开始尝试创建武汉叶子节点.

sql脚本语句:

#其余叶子节点分别是 lizhuangleaf01、zhoushanleaf02、leyanleaf03

create database wuhanleaf04; 

#共三张主表 undergraduate、postgraduate、ljdy

create table undergraduate(
    id int not null primary key auto_increment,
    timeofscene datetime,
    location text,
    person text,

    description text);

create table postgraduate(
    id int not null primary key auto_increment,
    timeofscene datetime,
    location text,
    person text,

    description text);

create table ljdy(
    id int not null primary key auto_increment,
    timeofscene datetime,
    location text,
    person text,

    description text);

# 举个例子,应该是当前map表单

create table ljdy20180611(
    currentdate date, 
    currenttime time,
    fragment text,
    description text);

# 插入记忆碎片

insert into ljdy20180611(currentdate,currenttime,fragment,description) 

value('2018-06-11','11:29:00',"java","learning scheme");

#打开sql更新开关

set sql_safe_updates = 0;

update ljdy20180611 set description='as a developer, you need to learn Java'; 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值