![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
wangduqiang747
这个作者很懒,什么都没留下…
展开
-
mysql没有select into但有create select
【代码】mysql没有select into但有create select。原创 2022-11-30 15:02:30 · 322 阅读 · 0 评论 -
sql 取日期的年月日
select year(create_time) from m_access_log select month(create_time) from m_access_log select day(create_time) from m_access_log 我居然才知道转载自:https://blog.csdn.net/mrtwofly/article/details/53939400一、数学函数ABS(x) 返回x的绝对值BIN(x) 返回x的二进制(OCT返回八进制,HEX返回十原创 2022-01-05 10:58:11 · 11188 阅读 · 0 评论 -
sql 多字段 in
很多人不会用多字段的in改之前update LIInsContact lii set lii.relation = '01' where lii.contactno in (select m.contactno from (select a.employeeid, a.customid,原创 2021-08-18 17:33:25 · 1963 阅读 · 1 评论 -
oracle 删除主键
删除主键一定要一起把索引删除切记alter table x drop constraint PK_x cascade drop index; alter table x add constraint PK_x primary key (GRPCONTNO, PROPOSALNO) using index ;删除约束 同时删除索引.添加主键约束,同时加索引...原创 2021-08-13 09:45:22 · 8023 阅读 · 0 评论 -
一个子查询中的sql优化
select a.employeeid, (select listagg(g.Email, ';') within group(order by e.CustomID) from LCInsured e, LIInsContact f, LIBranchEmailSet g where e.CustomID = f.CustomID and e.EmployeeID = f.EmployeeID ...原创 2021-07-19 17:20:50 · 194 阅读 · 0 评论 -
sql子查询的子查询内部无法使用最外层的参数的问题
(case when (select distinct 1 from lcinshold where hangupreason in ('07', '08') and canceloperator is null ...原创 2021-06-09 18:35:55 · 2657 阅读 · 0 评论 -
oracle如何在所有procedure里搜索某些关键字, 存储过程
select distinct name from USER_SOURCE where type = 'PROCEDURE' and text like '%你要查找的内容 %'原创 2020-09-08 11:17:52 · 1255 阅读 · 0 评论