1
摘要: CREATE TABLE city_data ( city STRING, random_field STRING ); INSERT INTO city_data (city, random_field) VALUES ('New York', 'example1'), ('Los Angeles 阅读全文
posted @ 2024-12-29 20:07 萌哥-爱学习 阅读(147) 评论(0) 推荐(0)
摘要: 1. leetcode 2688 日活用户 Users 表: + + + | 字段名 | 类型 | + + + | user_id | int | | item | varchar | | created_at | datetime | | amount | int | + + + 在这个表可能包含 阅读全文
posted @ 2024-12-29 20:06 萌哥-爱学习 阅读(160) 评论(0) 推荐(0)
摘要: select a.id, a.salary ,b.id, b.salary from a left join b on a.id =b.id -- and b.salary != 200 ; -- 16swhere b.salary != 200 ; 主表中的条件要放到 where 条件中, 附表中 阅读全文
posted @ 2024-12-29 19:59 萌哥-爱学习 阅读(24) 评论(0) 推荐(0)