1.oracle如何取前几条记录
select * from (select distinct emp_name from userTable) where rownum<10
2.oracle如何将日期转换成指定格式
select to_char(sysdate,'YYYY/mm/dd') mydate from tableName
3.oracle查找某条记录不为空或者为空
select * from tableName where col1 is not null and col2 is null
更新中.....................
select * from (select distinct emp_name from userTable) where rownum<10
2.oracle如何将日期转换成指定格式
select to_char(sysdate,'YYYY/mm/dd') mydate from tableName
3.oracle查找某条记录不为空或者为空
select * from tableName where col1 is not null and col2 is null
更新中.....................
本文介绍了Oracle数据库中一些实用的SQL技巧,包括如何选取前几条记录、如何将日期转换为指定格式以及如何检查某列是否为空等。这些技巧对于日常数据库管理和查询非常有用。
2087

被折叠的 条评论
为什么被折叠?



