我有2张桌子
\p{Alnum}++
(?> # open an atomic group
\. # a literal dot
\p{Alnum}* # zero or more alphanumeric characters
-? # an optional hyphen
\p{Alnum}+ # one or more alphanumeric characters
| # OR the same in a different order
-\p{Alnum}*\.?\p{Alnum}+
)? # the atomic group is optional
上面两个表中的,我想将它们都添加到下面的表格中
0 --> Pending
1 --> Success
2 --> Fail
table : mntnc
+-------+-------+-------+
| id | own | sts |
+-------+-------+-------+
| 1 | BN | 1 |
| 2 | BB | 2 |
| 3 | BN | 1 |
| 4 | BD | 1 |
| 5 | BD | 0 |
table : istlsi
+-------+-------+-------+
| id | own | sts |
+-------+-------+-------+
| 1 | BN | 1 |
| 2 | BB | 1 |
| 3 | BB | 1 |
| 4 | BC | 0 |
| 5 | BD | 2 |
答案 0 :(得分:3)
这里有两个关键点:
$.get( "example.php", function() {
alert( "success" );
}).done(function() {
isLoading = false;
});
)首先,我们将两个表合并为一个内联视图。
然后,我们对每个所需列使用case语句,并根据sts值评估将值设置为1或0的状态。然后总结那些...
B