摘要:
基础查询: select name,age from stu; -- 查两列 select * from stu; -- 查全部,不推荐 select distinct address from stu; --查一列去除重复数据 select name,math as 数学成绩,english as 阅读全文
posted @ 2023-02-27 20:12
大灰狼21
阅读(32)
评论(0)
推荐(0)
摘要:
给指定列添加数据: insert into stu(id,name) values(1,'张三'); insert into stu values(1,'张三'); -- 所有列时,列表可省略(不建议) insert into stu values(1,'张三'),(2,'李四'),(3,'王五') 阅读全文
posted @ 2023-02-27 19:39
大灰狼21
阅读(20)
评论(0)
推荐(0)
摘要:
查询当前数据库下所有表名称: show tables; 查询表结构: desc user; 创建表: create table tb_user( id int, age int, score double(5,2), -- 小数点后两位,5-2=3,三位数100,0~100.00 birthday 阅读全文
posted @ 2023-02-27 19:16
大灰狼21
阅读(83)
评论(0)
推荐(0)
摘要:
查询数据库: show databases; 创建数据库: create database db1; create database if not exist db1; 删除数据库: drop database db1; drop database if exists db1; 查看数据库: sel 阅读全文
posted @ 2023-02-27 18:12
大灰狼21
阅读(57)
评论(0)
推荐(0)
摘要:
alt按住,然后鼠标左键 阅读全文
posted @ 2023-02-27 15:50
大灰狼21
阅读(59)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/qq_44790505/article/details/123844243 阅读全文
posted @ 2023-02-27 13:47
大灰狼21
阅读(152)
评论(0)
推荐(0)
摘要:
https://zhuanlan.zhihu.com/p/403200350 阅读全文
posted @ 2023-02-27 10:58
大灰狼21
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号