摘要:
1,两表关联并更新 --sqlserver update a set a.reg_date = b.reg_datafrom gsk_all_to_creditchina a,gsk_re.gsk_new_mysql bwhere a.company_name=b.company_nameand a 阅读全文
2020年1月9日
2019年8月14日
摘要:
1, 编写一个 SQL 查询,获取 Employee 表中第 n 高的薪水(Salary)。 + + +| Id | Salary |+ + +| 1 | 100 || 2 | 200 || 3 | 300 |+ + +例如上述 Employee 表,n = 2 时,应返回第二高的薪水 200。如果 阅读全文
2019年8月13日
摘要:
1.有一个courses 表 ,有: student (学生) 和 class (课程)。 请列出所有超过或等于5名学生的课。 select class from courses group by class having count(student)>=5; 2. 给定一个 salary 表,如下 阅读全文
2019年4月26日
摘要:
判断pg_cust_analysis_all表中的’客户名称‘字段是否包含 ICP.dbo.a 表中的ai字段中的数据 eccrc_rep.dbo.pg_cust_analysis_all.客户名称是公司名 ICP.dbo.a.ai是‘ai’发音的汉字 这个需求是计算公司名中包含“爱”同音字 sel 阅读全文
2019年4月19日
摘要:
update gsk_all_to_creditchina a inner join(select company_name,type from ljx_108)b on a.company_name = b.company_name set a.type = b.type; 阅读全文
2019年4月18日
摘要:
cd web_publicity #先到这个文件夹下 在输入 这个命令 :nohup python3 manage.py runserver 0.0.0.0:8000 >log.txt 2>&1 & 就可以运行服务器上的代码了。 阅读全文
2019年4月11日
摘要:
删除与查找语句DELETE a FROM vidb.dbo.gsk_new a LEFT JOIN gsk_deregistration b on a.公司名=b.公司名WHERE b.[公司名] is not null select a.公司名 from (select 公司名 from vidb 阅读全文
2019年3月7日
摘要:
1.查找同一张表中多个字段都重复的数据 (1)查找重复数据 select t0.* from(select 注册号,公司名 from t1 group by 注册号,公司名 hacing count(公司名) > 1) t left join t1 t0 on t0.注册号 = t.[注册号] an 阅读全文
2019年2月22日
摘要:
Django入门到实战(一) 转载地址:https://www.imooc.com/article/77138 Django入门到实战(一) 转载地址:https://www.imooc.com/article/77138 一、项目目录结构介绍 manager.py 与项目进行交互的命令行工具集的入 阅读全文
2019年2月18日