2019年7月28日
摘要: 多表连接语法结构: table_referebce [inner] join | {left | right} [outer] join table_refernce on conditional_expr 建表与数据准备: #建表 create table department( id int, 阅读全文
posted @ 2019-07-28 17:57 wzc27229 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 子查询: 嵌套在其他sql语句中的查询语句 例: select * from table where cole1= (select cole2 from table2); 子查询嵌套在查询内部,且必须出现在圆括号内(子查询结果必须是另一个查询的过滤条件) 使用比较运算符的子查询: = ,>, <, 阅读全文
posted @ 2019-07-28 14:22 wzc27229 阅读(129) 评论(0) 推荐(0) 编辑