摘要:
例如,用户名test1改为test2,在plsql界面中不支持直接更改用户名,只能通过sql更改 1、查询系统user$中的user#值 select user#,name from user$ where name = 'test1'; 2、根据user#值,更改用户名 update user$ set name='test2' where user#=68; 3... 阅读全文
摘要:
--case when用法
select
case
when cast(strftime('%H','now','localtime') as int) >= 6 and cast(strftime('%H','now','localtime') as int) <=12 then '上午'
when cast(strftime('%H','now','localtime') as int) >12 and cast(strftime('%H','now','localtime') as int) <=18 then '下午'
when cast(strftime('%H','now','localtime') as int) >18 and cast(strftime('%H','now','localtime') as int) <=23 then '晚上'
else '凌晨' end; 阅读全文