SQL full join 自定義條件列

2021-05-28 14:35:54 字數 663 閱讀 5082

use test

select *

from

((select col1,col2 from result where col3='a')as t1(col1,col2_a)

full join

(select col1,col2 from result where col3='b')as t2(col1,col2_b)

on t1.col1=t2.col1

)

col1 |  col2_a |  col1  |col2_b

select col1,col2_a,col2_b

from

((select col1,col2 from result where col3='a')as t1(col1,col2_a)

full join

(select col1,col2 from result where col3='b')as t2(col1,col2_b)

on t1.col1=t2.col1

)

col1 |  col2_a |  col2_b

自定義 ProgressBar 進度條 自定義樣式

今天學習給progressbar換個樣式,先看效果圖 c h,e d8 z f j x 原理 在xml檔案中分別定義進度條背景 第一進度顏色 第二進度顏色,然後在progressbar的android progressdrawable屬性應用即可。6 j a7 c h b k h q y g s d...

自定義進度條

自定義進度條 1 繪製底色 灰色 2 繪製進度 藍色 3 繪製最大的進度 純藍色 rectf rf new rectf 0,0,mwidth,mheight 繪製圓角矩形,背景色為畫筆顏色 mpaint.setcolor color.rgb 220,220,220 canvas.drawroundr...

自定義滾動條

滾動條從外觀來看是由兩部分組成 1.滑塊 可以滑動的部分 2.軌道 即滑塊的軌道,一般來說滑塊的顏色比軌道的顏色深。滾動條的css樣式主要有三部分組成 1 webkit scrollbar 定義了滾動條整體的樣式 可以改變滾動條的寬度 2 webkit scrollbar thumb 滑塊部分 可以...