志翔科技有限公司後勤網
Would you like to react to this message? Create an account in a few clicks or log in to continue.
志翔科技有限公司後勤網

後勤等待處理訊息站,請各位成員努力消除待工區
 
首頁首頁  Latest imagesLatest images  會員註冊會員註冊  登入登入  

 

 欄位及變數命名

向下 
發表人內容
flying
Admin
flying


文章數 : 207
注冊日期 : 2008-11-11

欄位及變數命名 Empty
發表主題: 欄位及變數命名   欄位及變數命名 Empty周三 11月 26, 2008 11:35 am

欄位及變數命名
命名不得使用保留字、關鍵字,如:(按字母排序)
all、alter、and、any、as、avg、
between、by、commit、contains、count、cross、create、cursor、
declare、delete、desc、distinct、drop、
except、exec、exists、
false、foreign、from、full、
grant、group、having、
in、inner、insert、intersect、into、
join、key、left、like、lower、
max、min、not、null、
on、or、order、outer、primary、
references、revoke、rollback、
schema、select、set、some、sort、substring、sum、
talbe、true、
union、unique、unknown、update、upper、user、where

另外也避免使用不雅之單字,如:
fuck、ass、shit,gy,dead開頭

為求資料庫執行之穩定,命名時不得使用中文

統一命名規則
金額部分,建議後置mon字樣
例:
1.月支薪俸
month+mon→monthmon
2.房屋貸款
house+mon→housemon
文字變數,建議前置ls_字樣
例:
1.姓名
ls_+name→ls_name
2.地址
ls_address→ls_address
回頂端 向下
http://idon.666forum.net
 
欄位及變數命名
回頂端 
1頁(共1頁)

這個論壇的權限:無法 在這個版面回復文章
志翔科技有限公司後勤網 :: 後勤主題與待工區 :: 後勤標準化-
前往: