代码拉取完成,页面将自动刷新
CREATE DATABASE IF NOT EXISTS mybatisdb DEFAULT CHARSET=UTF8;
USE mybatisdb;
DROP TABLE IF EXISTS customers;
CREATE TABLE customers
(
cust_id VARCHAR(32) PRIMARY KEY,
cust_tel VARCHAR(32),
cust_name VARCHAR(64),
city VARCHAR(128)
) CHARSET = UTF8;
INSERT INTO customers
VALUES ('0001', '13512345678', 'Jerry', '北京'),
('0002', '13222334455', 'Tom', '成都'),
('0003', '13811112222', 'Dekie', '北京');
DROP TABLE IF EXISTS orders;
CREATE TABLE orders
(
order_id VARCHAR(32) primary key,
cust_id VARCHAR(32),
order_date DATETIME,
status INT,
products_num INT,
amt DOUBLE(10, 2)
) CHARSET=UTF8;
INSERT INTO orders
VALUES ('202301010001', '0001', '1999-01-01 00:00:00', 1, 2, 100);
INSERT INTO orders
VALUES ('202301010002', '0001', '1999-01-01 00:00:00', 1, 1, 200);
INSERT INTO orders
VALUES ('202301020001', '0002', '1999-01-01 00:00:00', 4, 1, 70);
INSERT INTO orders
VALUES ('202301020002', '0002', '1999-01-01 00:00:00', 2, 3, 450.34);
INSERT INTO orders
VALUES ('202301020003', '0003', '1999-01-01 00:00:00', 3, 4, 800.45);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。