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.
名前を含むデータベースがあります。これらの名前をアルファベット順に 4 つの ARRAY -> (AF) (GL) (MR) (SZ) に並べ替える必要があります。私が使用できる戦略はありますか?
範囲ごとに 1 回、データベースに対して 4 回クエリを実行します。クエリは次のようになります。
select * from T where Name >= 'G' and name < 'M' order by name