网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

MySQL数据库基本命令八

时间:2024-10-29 16:56:34

1、between...and...(判断表达式的值是否在某范围内)

MySQL数据库基本命令八

2、in / not in(判断表达式的值是否在子查询的结果中)

MySQL数据库基本命令八

3、group by(分组查询)

MySQL数据库基本命令八

4、多表查询:联合查询:select * from 表名1,表名2 where 表名1.id=表名2.id;

MySQL数据库基本命令八

5、多表查询:嵌套查询:select * from 表名1 where id in(select id from 表名2 where 条件);

MySQL数据库基本命令八

6、多表查询:联合查询:select * from 表名1 (left左联合/right右联合) join 表名2 on 表名1.id=表名2.id ;

MySQL数据库基本命令八
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com