数据库表的建立

1.create database mydb6_product;

2.use mydb6_product;

3.mysql> create table employees(

-> id int(5) primary key,

-> name varchar(50) not null,

-> age int(10),

-> gender varchar(10) not null,

-> salary float(10,2)

-> );

4.mysql> create table orders(

-> id int(10) primary key,

-> name varchar(100) not null,

-> price float(10,2),

-> quantity int(10),

-> category char(50)

-> );

5.mysql> create table invoices(

-> order_id int ,

-> in_date date,

-> total_amount decimal(2,10) check (total_amount > 0),

-> foreign key (order_id) references orders(id)

-> );

相关推荐
且随疾风前行.1 小时前
Android Binder 驱动 - 内核驱动层源码初探
android·网络·binder
额恩661 小时前
AI 智能体从零搭建实战教程——扣子
android·rxjava·coze
hunterandroid2 小时前
前台服务适配与线上排查:通知权限、启动限制和任务保活
android·前端
帅次2 小时前
Android 高级工程师面试:Flutter 渲染与性能 近1年高频追问 20 题
android·flutter·面试·渲染·性能
糖果店的幽灵3 小时前
【langgraph 从入门到精通graphApi 篇】Command 与动态流程控制
android·java·数据库·人工智能·langgraph
Android-Flutter3 小时前
Android的http和https知识点
android·http·https
Kapaseker4 小时前
Sequence 一定比 List 快?等等,我们先从基础讲起
android·kotlin
AI刀刀4 小时前
deepseek 内容粘贴后符号丢失怎么办?AI 导出鸭实测解决排版乱码问题
android·人工智能·excel·ai导出鸭
东方佑4 小时前
Per-Group 混合精度量化:将 14B 视频生成模型压缩至 11 GB
android
三少爷的鞋5 小时前
Android 面试系列 : 协程为何比线程高效
android