Oracle中select使用別名

2021-09-07 06:31:38 字數 848 閱讀 3689

1 、將字段用as轉換成別名。

2 、直接在字段的名字後面跟別名。

3 、在字段後面用雙引號引起的別名。

我的朋友

最近訪客

it168企業級官微

系統架構師大會

訂閱推薦博文

熱詞專題

oracle--select使用別名

2009-05-15 16:37:12

分類: oracle

一. select使用別名的三種方式:

1 將字段用as轉換成別名

eg:

sql> select name as xingxing from test1;

xingxing

--------------------

張學友xingxing

田月超田月星

yuechaotian

李連杰

已選擇6行。

2 直接在字段的名字後面跟別名

eg:

sql> select name xingxing from test1;

xingxing

--------------------

張學友xingxing

田月超田月星

yuechaotian

李連杰

已選擇6行。

3 字段後面+用雙引號引起的別

Ruby on Rails中select使用方法

在ruby on rails中真的有一堆select helper可以用,我們經常容易混淆。常見的有三個.select,select tag,collection select 其餘的什麼select date那些不談 我們先來看看乙個基本的下拉式選項骨架 p select name ror opt...

Bash shell 中,select 使用舉例

2.2 結合 case 使用 三 總結 在最近的運維工作中,寫了很多指令碼,在寫這些指令碼時發現了一些高效的用法,現將 select 的用法簡單介紹一下。select 表示式是 bash 的一種擴充套件應用,擅長於互動式場合。使用者可以從一組不同的值中進行選擇。格式如下 select var in ...

iview中select的使用

待完善 參考 label 區域 prop districtid v model step1form.districtid placeholder 選擇區域 on change mydistrict label in value true v for item in arealist value it...