摘要: -- 引号内的可换为其他sql处理语句 SELECT 'DELETE FROM '|| table_name || ';' FROM USER_TABLES ORDER BY TABLE_NAME; 阅读全文
posted @ 2020-06-11 15:27 万里哥 阅读(223) 评论(0) 推荐(0) 编辑
摘要: -- 两种方式实现 --top函数实现,震惊,oracle数据库不支持top函数,笑了,所以oracle数据库还是用rownum函数实现 select top 5 name,StuID from Students order by StuID --rownum函数实现,rownum不支持>, >=, 阅读全文
posted @ 2020-06-11 15:24 万里哥 阅读(386) 评论(0) 推荐(0) 编辑
摘要: -- 默认为升序,desc是降序 select name,StuID from Students order by StuID desc -- 升序 select name,StuID from Students order by StuID 阅读全文
posted @ 2020-06-11 15:20 万里哥 阅读(1982) 评论(0) 推荐(0) 编辑