找回密码
 立即注册
搜索
查看: 340|回复: 1

[Oracle] Oracle 在select查询时有多条数据按原表内最大值+1进行显示

[复制链接]
发表于 2025-1-16 11:15:00 | 显示全部楼层 |阅读模式
  1. SELECT t.*,
  2.        MAX(original_column) OVER () + ROW_NUMBER() OVER (ORDER BY original_column) AS new_column
  3. FROM your_table t
  4. WHERE your_conditions;
复制代码
请将your_table替换为您的实际表名,original_column替换为您要基于其最大值加1的字段名,your_conditions替换为您的查询条件。
欢迎注册吾爱缘分网,在这里可留言管理员需要找的资源哦。
匿名  发表于 2025-5-2 18:21:10

-

I can not participate now in discussion - there is no free time. I will return - I will necessarily express the opinion on this question.

A user-friendly mobile interface makes gaming on your phone smooth and enjoyable. Top casinos in 2025 feature intuitive menus, fast navigation, and touch-optimized games for seamless play. Look for platforms with responsive designs and easy access to support and payments. At secure-casinos.com, we’ve ranked the top 5 casinos with the best mobile interfaces. Ready for effortless mobile gaming? Explore our list and start playing today.  https://tinyurl.com/3cxurpma
欢迎注册吾爱缘分网网站,别人有的咱都有哦。
高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

手机版|小黑屋|技术分享

GMT+8, 2025-5-10 04:17 , Processed in 0.095933 second(s), 20 queries .

Powered by 吾爱缘分

© 2024-2024 吾爱缘分

快速回复 返回顶部 返回列表