我有一张像
ID ENVI SERVER GROUP ACTIVE
== ==== ====== ====== ======
1 Developent AREGION_1 A 1
2 Developent AREGION_2 A 1
3 Developent AREGION_3 A 1
4 Developent BREGION_1 B 1
5 Developent BREGION_2 B 1
6 Developent BREGION_3 B 1
7 Developent CREGION_1 C 1
8 Developent CREGION_3 C 1
9 Developent A1REGION A 1
10 Developent A2REGION A 1
11 Developent ABCREGION A 1
我需要编写一个带有输入参数的 sp ENVI
,它将返回如下结果
ENVI A B C
==== ========= ========= =========
Development AREGION_1 BREGION_1 CREGION_1 (All servers Ending with _1)
Development AREGION_2 BREGION_2 (All servers Ending with _2)
Development AREGION_3 BREGION_3 CREGION_3 (All servers Ending with _3)
Development A1REGION
Development A2REGION
Development ABCREGION
条件是所有以数字结尾的服务器_
都应该排在第一位。如果任何一列没有该行的值,则该字段应为 null 或为空。任何组下具有随机名称的任何服务器都必须放在该组下的最后。
请帮我创建sp
提前致谢