Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想根据条件从 oracle 数据库中假脱机 2 条记录。所以这意味着我有 1000 条记录,其中包含字段名称、地址、SIN 号和语言(英语或法语)。我想假脱机 2 记录 1 英语和 1 法语。有什么方法可以随机提取 2 条记录,其中 1 条是英语,1 条是法语
就像这个一样简单:
select rownum, lang, name from t where lang = 'french' union all select rownum, lang, name from t where lang = 'english' order by 1,2
SQL小提琴