随笔分类 -  mysql

摘要:一、内连接查询 (笛卡儿积) 内联接查询inner join,mysql可以简写为join 二、外连接查询 左外联接查询left outer join,mysql可以简写为left join右外联接查询right outer join,mysql可以简写为right join 举个栗子: 创建两张表 阅读全文
posted @ 2019-11-27 17:11 hoo_o 阅读(701) 评论(0) 推荐(0) 编辑
摘要:一、建表 用户表tb_user create table if not exists tb_user( user_id int auto_increment, user_name varchar(32) not null, user_password varchar(64) not null, us 阅读全文
posted @ 2019-11-15 15:06 hoo_o 阅读(204) 评论(0) 推荐(0) 编辑
摘要:一、 综述:两张表,一张顾客信息表customers,一张订单表orders 1、创建一张顾客信息表customers,字段要求如下: c_id 类型为整型,设置为主键,并设置为自增长属性 c_name 字符类型,变长,宽度为20 c_age 微小整型,取值范围为0~255(无符号) c_sex 枚 阅读全文
posted @ 2019-04-26 14:00 hoo_o 阅读(282) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示