随笔分类 -  数据库相关

摘要:1、达梦数据库: select 1 from syscolumns where id in(select id from sysobjects where UPPER(name)=UPPER('" + 表名+ "')) and UPPER(name)=UPPER ('"+字段名+"') 2、Orac 阅读全文
posted @ 2021-08-10 11:27 一得之见 阅读(424) 评论(0) 推荐(0)
摘要:select Student, sum(case Course when '数学' then Score else null end) 数学, sum(case Course when '物理' then Score else null end) 物理, sum(case Course when ' 阅读全文
posted @ 2020-02-09 17:35 一得之见 阅读(127) 评论(0) 推荐(0)
摘要:SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';--如果后面显示180天的请将密码有效期由默认的180天修改成“无限制”:ALTER PROFILE DEFAU 阅读全文
posted @ 2020-02-06 18:54 一得之见 阅读(218) 评论(0) 推荐(0)