随笔分类 - SQL
摘要:-- 创建hq_kline表 delete from hq_kline CREATE TABLE hq_kline( id INT AUTO_INCREMENT PRIMARY KEY, finance_mic VARCHAR(16) NOT NULL, prod_code VARCHAR(64)
阅读全文
摘要:SQL1 top 2 -->结尾处limit 2 SQL13 in('1','3','5') 找的内容不连续 between 1 and 5 包含首尾,找的内容连续 is/is not NULL SQL18 select gender,university,count(device_id) user
阅读全文
摘要:力扣584.寻找用户推荐人: select name from customer where referee_id!=2 or referee_id is not NULL; null值无法与确定的值作比较,用 is NULL 或者 is not NULL 判断 力扣175.组合两个表: selec
阅读全文