use pubs --使用pubs資料庫
--簡單型case表示式
select distinct a= --distinct是取消重提,a是列名
case state --state是乙個列名
when 'ca' then 'ccaa'
else 'd'
endfrom authors
select distinct state as a from authors
select distinct state b from authors
select distinct c=state from authors
--搜尋型case表示式
select 'tex=t a'= --一列名,其中有空格則加單引號
case
when price is null then 'not yet priced'
when price <10 then 'very reasonable title'
when price >=10 and price<20 then 'coffee table title'
else 'expensive book!'
endfrom titles
簡單委託例子
例子1 using system using system.collections.generic using system.text 例子2 using system using system.collections.generic using system.text namespace 介面 c...
Pro C 簡單例子
include exec sql begin declare section char userid 11 hr oracle char std name 10 int std number int dept number exec sql end declare section char temp...
TabLayout簡單例子
要生成乙個tab ui需要用到兩個類,乙個是tabhost,乙個是tabwidget.tabwidget是用來顯示標籤欄的,內嵌在tabhost裡面。首先建立以tabhost為根節點的xml布局檔案 生成三個對應於標籤內容的activity pictureactivity public class ...